Faster view changes for blockchain

By utilizing the signature evidence in the prepared message within the blockchain network, the problem of excessively long waiting times during the viewing of changes is resolved, enabling a faster viewing of changes and improving the efficiency of blockchain updates.

CN115699054BActive Publication Date: 2026-11-27INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202180018928.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-04-17
Filing Date
2021-04-13
Publication Date
2026-11-27
Estimated Expiration
2041-04-13

AI Technical Summary

Technical Problem

In a blockchain network, viewing changes requires waiting for 2f+1 view data messages to ensure the consistency of the blockchain state, resulting in a long update process.

Method used

By utilizing the signature evidence in the preparation message during the change viewing process, the number of data messages waiting to be viewed is reduced. Only one data viewing message is needed to confirm the consistency of the blockchain state. The signature evidence in the preparation message ensures that the ongoing changes to the blockchain state match the current state in the data viewing message.

Benefits of technology

This enables faster viewing of changes during blockchain updates, reduces waiting time, and improves the efficiency of the blockchain network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115699054B_ABST
    Figure CN115699054B_ABST
Patent Text Reader

Abstract

A method of a primary peer includes receiving a view change message requesting a change from a previous primary peer of a blockchain to the primary peer, identifying, by the previous primary peer, that a state change of the blockchain is in progress based on metadata of the received view change message, validating that the state change of the blockchain corresponds to a most recent change of the blockchain based on the received view data message, and sending a new view message including the in-progress change of the state of the blockchain to a subsequent peer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of distributed storage systems, and more particularly to a distributed storage system that enables faster viewing of changes when updates to the distributed storage system are in progress. Background Technology

[0002] A centralized database stores and maintains data in a single location (e.g., a database server). This location is typically a central computer, such as a desktop central processing unit (CPU), server CPU, or mainframe computer. Information stored on a centralized database is usually accessible from multiple different points. Multiple users or client workstations can work simultaneously on the centralized database, for example, based on a client / server configuration. Centralized databases are easy to manage, maintain, and control due to their single location, especially for security purposes. Within a centralized database, data redundancy is minimized because the single storage location of all data also implies that a given dataset has only one master record. Summary of the Invention

[0003] One example embodiment provides an apparatus that may include a network interface configured to execute one or more view change messages requesting a previous primary peer of a blockchain to the primary peer, and a processor configured to have the previous primary peer identify that a state change of the blockchain is in progress based on metadata of the received view change messages, and to verify that the state change of the blockchain corresponds to the latest change of the blockchain based on the received view data messages, wherein the network interface is further configured to send new view messages to subsequent peers, which include an in-process change of the blockchain state.

[0004] Another example embodiment provides an apparatus that may include a processor configured to: determine that the current primary peer of a blockchain has become a failed peer, identify that a state change of the blockchain is in progress on the current primary peer, and generate a view change message including a next view number and a hash of the ongoing state change of the blockchain, and a network interface, configured to transmit the generated view change message to other peers.

[0005] Another embodiment provides a method comprising one or more of the following: receiving a request to view a change message from a previous primary peer of a blockchain to a primary peer, the previous primary peer identifying that a state change of the blockchain is in progress based on metadata of the received view change message, verifying that the state change of the blockchain corresponds to a recent change of the blockchain based on the received view data message, and sending a new view message including the in-progress change of the blockchain state to a subsequent peer.

[0006] Another example embodiment provides an apparatus that may include one or more of a network interface and a processor, the network interface being configured to receive a pre-preparation message from a primary peer including proposal data to be added to a blockchain, and the processor being configured to: generate a pre-preparation message including a hash of the proposal data to be added to the blockchain and signatures of the co-peers, add a hash puzzle of the co-peers to the pre-preparation message, and send the pre-preparation message with the hash puzzle to a plurality of other co-peers in the blockchain.

[0007] Another example embodiment provides an apparatus that may include one or more of a network interface and a processor, the network interface being configured to receive a view change message including a next view value and a hash of an ongoing change to the blockchain state, and the processor being configured to: in response to receiving a predetermined threshold of a view change message, generate a view data message including a preparation message signed by other subsequent peers having evidence of an ongoing change to the blockchain state, and send the generated view data message including the signed preparation message to the primary peer.

[0008] From a first aspect, the present invention provides an apparatus comprising: a network interface configured to receive a view change message requesting a view change from a previous master peer of a blockchain to the master peer; and a processor configured to have the previous master peer identify that a state change of the blockchain is in progress based on metadata of the received view change message, and to verify that the state change of the blockchain corresponds to the most recent change of the blockchain based on the received view change message, wherein the network interface is further configured to send a new view message to a subsequent peer, which includes an in-progress change of the state of the blockchain.

[0009] Preferably, the present invention provides an apparatus in which the network interface is configured to send a new viewing message in response to receiving only one viewing data message.

[0010] Preferably, the present invention provides an apparatus in which the ongoing change of blockchain state includes a proposed data block.

[0011] Preferably, the present invention provides an apparatus in which the processor is further configured to verify that a view change message has been received from a subsequent peer at a predetermined threshold.

[0012] Preferably, the present invention provides an apparatus in which, for each view change message, the metadata includes the next view number and the hash change of the blockchain.

[0013] Preferably, the present invention provides an apparatus in which viewing data messages include a plurality of preparation messages, which are received by a subsequent peer from other peers.

[0014] Preferably, the present invention provides an apparatus in which the processor is configured to verify that an ongoing change in the state of the blockchain is included in a preparation message containing a predetermined number of signatures stored within the view data message.

[0015] In another aspect, the present invention provides an apparatus comprising: a processor configured to determine that the current master peer of a blockchain has become a faulty peer, that the current master peer identifies that a state change of the blockchain is in progress, and to generate a view change message including a next view number and a hash of the in-progress change to the state of the blockchain; and a network interface configured to send the generated view change message to other peers.

[0016] Preferably, the present invention provides an apparatus in which the processor is further configured to store signatures of other subsequent peers of the blockchain in a viewed change message, the signatures reaching consensus on the ongoing change of the blockchain state.

[0017] Preferably, the present invention provides an apparatus in which ongoing changes and signatures of the blockchain state are collected during the preparation phase of Practical Byzantine Fault Tolerance (pBFT).

[0018] Preferably, the present invention provides an apparatus in which the processor is configured to identify ongoing changes in the state of the blockchain based on pre-prepared messages received from the current master peer.

[0019] In another aspect, the present invention provides a method for a primary peer, comprising: receiving a request to view a change message from a previous primary peer of a blockchain to the primary peer; having the previous primary peer identify that a state change of the blockchain is in progress based on the metadata of the received view change message; verifying that the state change of the blockchain corresponds to the most recent change of the blockchain based on the received view data message; and sending a new view message including the in-progress change of the blockchain state to a subsequent peer.

[0020] Preferably, the present invention provides a method wherein the sending includes sending a new viewing message in response to receiving only one viewing data message.

[0021] Preferably, the present invention provides a method in which the ongoing change of blockchain state includes a proposed data block.

[0022] In another aspect, the present invention provides an apparatus comprising: a network interface configured to receive a pre-preparation message from a primary peer, the pre-preparation message including proposal data to be added to a blockchain; and a processor configured to generate a preparation message including a hash of the proposal data to be added to the blockchain and a signature of a consensus peer, add a hash puzzle of the consensus peer to the preparation message, and transmit the preparation message with the hash puzzle to a plurality of other consensus peers in the blockchain.

[0023] Preferably, the present invention provides an apparatus in which the processor is further configured to determine, based on a preparation message received from other consensus peers, the proposed data that other consensus peers agree to be added to the blockchain.

[0024] Preferably, the present invention provides an apparatus in which the processor is further configured to generate a commit message including a solution to a hash puzzle added to a preparation message, and to send the commit message to a plurality of other consensus peers.

[0025] Preferably, the present invention provides an apparatus in which the submission message does not include the signature of the consensus peer.

[0026] Preferably, the present invention provides an apparatus in which a processor is configured to generate a hash puzzle via a hash of a predefined secret value.

[0027] Preferably, the present invention provides an apparatus in which the processor is further configured to receive a preparation message from other consensus peers, wherein the received preparation message includes a hash puzzle added by the other respective consensus peers.

[0028] In another aspect, the present invention provides an apparatus comprising: a network interface configured to receive a view change message, the view change message including a next view value and a hash of an ongoing change to the state of a blockchain; and a processor configured to, in response to receiving a predetermined threshold of a view change message, generate a view data message including a preparation message signed by other subsequent peers having evidence of an ongoing change to the state of the blockchain, and send the generated view data message including the signed preparation message to a primary peer.

[0029] Preferably, the present invention provides an apparatus in which preparation messages for signatures are collected during the preparation phase of a Byzantine Fault Tolerance (BFT) consensus.

[0030] Preferably, the present invention provides an apparatus in which the signature preparation message includes metadata, the metadata including a hash of an ongoing change to the blockchain state and a view number of the new master peer.

[0031] Preferably, the present invention provides an apparatus in which the signature preparation message further includes a hash puzzle added by other subsequent peers.

[0032] Preferably, the present invention provides an apparatus in which the processor is further configured to receive in-process changes to the state of the blockchain from a master peer. Attached Figure Description

[0033] Figure 1A This is a schematic diagram illustrating a blockchain network for performing a view of changes, according to an exemplary embodiment.

[0034] Figure 1B This illustrates the embodiment of the invention. Figure 1A A diagram illustrating the consensus process executed by a blockchain network.

[0035] Figure 1C This illustrates the embodiment of the invention. Figure 1A A diagram showing the process of viewing changes executed by the blockchain network.

[0036] Figure 2A This is a schematic diagram illustrating an example blockchain architecture configuration according to an example embodiment.

[0037] Figure 2B This is a schematic diagram illustrating the blockchain transaction flow between nodes according to an example embodiment.

[0038] Figure 3A This is a schematic diagram illustrating a licensed network according to an example embodiment.

[0039] Figure 3B This is a schematic diagram illustrating another licensed network according to an example embodiment.

[0040] Figure 3C This is a schematic diagram illustrating an unlicensed network according to an example embodiment.

[0041] Figure 4A This is a schematic diagram illustrating the format of the preparation message and commit message for blockchain consensus according to an example embodiment.

[0042] Figure 4B This is a schematic diagram illustrating the viewing of a changed message format according to an example embodiment.

[0043] Figure 4C This is a schematic diagram illustrating a faster view of the change process performed according to an example embodiment.

[0044] Figure 5A This is a schematic diagram illustrating a method for viewing changes according to an example embodiment.

[0045] Figure 5BThis is a schematic diagram illustrating a method for generating and viewing change messages according to an example embodiment.

[0046] Figure 5C This is a schematic diagram illustrating a method for generating a preparation message according to an example embodiment.

[0047] Figure 5D This is a schematic diagram illustrating a method for generating and viewing data messages according to an example embodiment.

[0048] Figure 6A This is a schematic diagram illustrating an example system configured to perform one or more operations described herein, according to an example embodiment.

[0049] Figure 6B This is a schematic diagram illustrating another example system configured to perform one or more operations described herein, according to an example embodiment.

[0050] Figure 6C This is a schematic diagram illustrating another example system configured to utilize smart contracts according to an example embodiment.

[0051] Figure 6D This is a schematic diagram illustrating yet another example system configured to utilize blockchain according to an example embodiment.

[0052] Figure 7A This is a schematic diagram illustrating the process of adding a new block to a distributed ledger according to an example embodiment.

[0053] Figure 7B This is a schematic diagram illustrating the data content of a new data block according to an example embodiment.

[0054] Figure 7C This is a schematic diagram illustrating a blockchain for digital content according to an example embodiment.

[0055] Figure 7D This is a schematic diagram illustrating a block that can represent the block structure in a blockchain according to an exemplary embodiment.

[0056] Figure 8A This is a schematic diagram illustrating an example blockchain for storing machine learning (artificial intelligence) data according to an example embodiment.

[0057] Figure 8B This is a schematic diagram illustrating an example quantum-safe blockchain according to an example embodiment.

[0058] Figure 9 This is a schematic diagram illustrating an example system that supports one or more example embodiments. Detailed Implementation

[0059] It will be readily understood that, as generally described and illustrated in the accompanying drawings, the components of the present invention can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of at least one embodiment of the methods, apparatus, non-transitory computer-readable medium, and system illustrated in the drawings is not intended to limit the scope of the claimed applications, but is merely representative of selected embodiments.

[0060] In one or more embodiments, the features, structures, or characteristics described herein may be combined or removed in any suitable manner. For example, throughout the specification, the use of the phrases “example embodiment,” “some embodiments,” or other similar language refers to the fact that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment. Therefore, the phrases “example embodiment,” “in some embodiments,” “in other embodiments,” or other similar language appearing throughout the specification do 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. Furthermore, in the figures, any connection between elements may allow unidirectional and / or bidirectional communication, even if the depicted connection is a unidirectional or bidirectional arrow. Moreover, any device depicted in the figures may be a different device. For example, if a mobile device is shown as transmitting information, a wired device may also be used to transmit information.

[0061] Furthermore, although the term "message" may have been used in the description of the embodiments, this application can be applied to many types of networks and data. Additionally, while certain types of connections, messages, and signaling may be described in the exemplary embodiments, this application is not limited to certain types of connections, messages, and signaling.

[0062] Example embodiments provide methods, systems, components, non-transient computer-readable media, devices, and / or networks for enabling faster viewing of change processes in permissioned blockchains.

[0063] In one embodiment, the application utilizes a decentralized database (such as a blockchain) as a distributed storage system, comprising multiple nodes that communicate with each other. The decentralized database comprises an immutable, append-only data structure, similar to a distributed ledger capable of maintaining records between mutually distrustful parties. These untrusted parties are referred to herein as peers or peer nodes. Each peer maintains a copy of the database records, and no single peer can modify a database record without consensus among the distributed peers. For example, peers can execute a consensus protocol to verify blockchain storage transactions, group storage transactions into blocks, and build a hash chain on the blocks. This process forms the ledger by ordering storage transactions as needed to maintain consistency. In various implementations, permissioned and / or permissionless blockchains can be used. In public or permissionless blockchains, anyone can participate without a specific identity. Public blockchains may 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 interaction between a group of entities that share common goals but do not fully trust each other, such as businesses exchanging funds, goods, information, etc.

[0064] This application can utilize blockchains that operate on arbitrary, programmable logic, customized as a decentralized storage scheme and referred to as "smart contracts" or "chaincode." In some cases, there may be dedicated chaincode, referred to as system chaincode, used for managing functions and parameters. Applications can also utilize smart contracts as trusted distributed applications, leveraging the tamper-proof nature of the blockchain database and the underlying agreements between nodes, known as endorsement or endorsement policies. Blockchain transactions associated with the application can be "endorsed" before being submitted to the blockchain, while unendorsed transactions are ignored. Endorsement policies allow chaincode to specify the endorsers of a transaction in the form of a set of peer nodes necessary for endorsement. When a client sends a transaction to the peers specified in the endorsement policy, the transaction is executed to verify it. After verification, the transaction enters a sorting phase, where a consensus protocol is used to produce an ordered sequence of endorsed transactions that are divided into blocks.

[0065] This application can utilize nodes as communication entities in a blockchain system. A "node" can perform logical functions, meaning that multiple nodes of different types can run on the same physical server. Nodes are grouped in trust domains and associated with logical entities that control them in various ways. Nodes can include different types, such as client or commit client nodes that 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 the peer node, which receives transactions submitted by clients, submits transactions, and maintains the state and copies of the blockchain transaction ledger. Peers can also have the role of endorser, although this is not required. A sorting service node, or sorting node, is a node that runs communication services for all nodes and implements delivery guarantees, such as broadcasting to every peer node in the system, when a transaction is submitted and the state of the blockchain world is modified. This is another name for the initial blockchain transaction, which typically includes control and setup information.

[0066] This application can utilize a ledger, which is an ordered, tamper-proof record of all state transitions in a blockchain. State transitions can be generated by chaincode calls (i.e., transactions) submitted by participants (e.g., client nodes, ordering nodes, endorser nodes, peer nodes, etc.). Each participant (such as a peer node) can maintain a copy of the ledger. A transaction can result in a set of asset key-value pairs being committed to the ledger as one or more operands, such as create, update, delete, etc. The ledger includes a blockchain (also called a chain) for storing immutable, ordered records in blocks. The ledger also includes a state database that maintains the current state of the blockchain.

[0067] This application can utilize a chain as a transaction log, constructed as hashed linked blocks, with each block containing a sequence of N transactions, where N is equal to or greater than 1. The block header includes the hash of the block's transactions, as well as the hash of the headers of previous blocks. In this way, all transactions on the ledger can be ordered and cryptographically linked together. Therefore, it is impossible to tamper with the ledger data without breaking the hash linking. The hash of the most recently added blockchain block represents every transaction on the chain that arrived before it, ensuring that all peer nodes are in a consistent and trustworthy state. This chain can be stored on peer node file systems (i.e., local, attached storage, cloud, etc.), thus efficiently supporting the attached-only nature of blockchain workloads.

[0068] Meanwhile, blockchain systems store data about an immutable ledger, providing distributed and decentralized access to the immutable ledger through untrusted participants. They establish consensus requirements based on agreement among these untrusted participants, ensuring that no single entity can alter the immutable ledger, invoke smart contracts, etc., without the consent of other entities. A blockchain is formed by a network of participants who agree to add blocks (containing data) to the immutable ledger. Before being added, the block is linked to the previous block on the immutable ledger, thus forming a chain. This immutable and unbreakable nature of blockchain makes it immune to forged information and hacking. Its decentralized nature also gives it a unique trustless quality, as parties do not need to establish trust before they can securely transact.

[0069] The current state of an immutable ledger represents the latest value of all keys included in the chain's transaction log. Because the current state represents the most recent key value known to the channel, it is sometimes referred to as the world state. Chaincode calls execute transactions against the ledger's current state data. To make these chaincode interactions valid, the latest value of the key can be stored in a state database. The state database can simply be an indexed lookup in the chain's transaction log, and therefore can be regenerated from the chain at any time. The state database can be automatically restored (or generated if needed) when a peer node starts up and before accepting a transaction.

[0070] A blockchain network can include many blockchain peers, each holding a copy / replica of the blockchain ledger. The blockchain network uses consensus protocols to ensure that the state of the blockchain ledger is consistent across all blockchain peers. One commonly used algorithm for achieving consensus is Practical Byzantine Fault Tolerance (pBFT). In pBFT consensus, one or more master peers act as leaders for the remaining peers (referred to as successor peers or consensus peers in this paper). Each master peer (leader) maintains the internal state of the blockchain ledger, just as the successor peers do.

[0071] When a request to store data to the blockchain is received from the client, the primary peer creates a proposal and multicasts it to subsequent peers grouped with it. Next, the subsequent peers share the proposal with each other to ensure agreement on the blockchain proposal. When agreement is reached, the subsequent peers (and the primary peer) commit the blockchain proposal to their internal ledgers and forward the response to the client.

[0072] A "view" is the period of time a given blockchain peer acts as the primary peer. A view change is the process of switching from one primary peer to another. For example, the next primary peer could be a subsequent peer selected in a cyclical manner based on the order of blockchain peers in the on-chain file. Both primary and subsequent peers can track the next primary peer by storing a view number in the on-chain file that identifies it. In addition to a series of view moves, peers also move via a series of sequence numbers, where the sequence number indicates the block number to be stored in the blockchain.

[0073] To perform a view change, a blockchain peer (subsequent peers) can request a view change when a timeout or erroneous activity is detected on the primary peer. As more blockchain peers detect erroneous activity, they also send view change messages. Here, blockchain peers within the group broadcast view change messages to each other. When enough view change messages are received, a new primary peer initiates a new view.

[0074] View change messages can be lightweight messages, which include requests for change indications in the primary peer without providing any content / state of the blockchain. When a predetermined threshold of view change messages is received in a blockchain peer, the blockchain peer sends a view data message including the current checkpoint of the blockchain to the new primary peer, allowing the new primary peer to restart where the failed primary peer stopped.

[0075] To ensure that the current checkpoint of the blockchain within the view data message is agreed upon by the blockchain peers, the new master peer must collect 2f+1 view data messages with the same checkpoint on the blockchain. In this case, "f" is the total number of potentially faulty nodes in a blockchain network with a total of "n" nodes, and n = 3f+1. After receiving 2f+1 view data messages using the blockchain checkpoint, the new master peer can broadcast the new view message to all blockchain peers that contain the view data message and instruct subsequent peers to move to the new master peer.

[0076] As in the case of a view change message, a new primary peer must wait to receive 2f+1 view data messages before it can send a new view message. This is because a view data message includes the current state of the blockchain and the signature of the blockchain peer that sent the view data message. For the new primary peer to ensure that enough blockchain peers agree on the current state of the blockchain, the primary peer must wait until it receives a view data message that includes at least a predetermined threshold of the latest state of the blockchain (e.g., 2f+1). The number 2f+1 means that even with 'f' faulty nodes, the number of correct / non-faulty data messages will be at least f+1 (i.e., at least more than f). Therefore, the primary peer can ensure that for a 2f+1 view data message, a majority / quorum of non-faulty peers agree on the ledger state. The disadvantage of the view change process is that the new primary peer must wait for 2f+1 view change messages and also wait for 2f+1 view data messages (including ledger checkpoints). As a result, a considerable amount of time is consumed during the view change process.

[0077] The exemplary embodiments overcome these drawbacks and enable faster viewing changes when updates to the blockchain are in progress (i.e., in progress). Specifically, exemplary embodiments utilize the content of a preparation message used during an in-progress update of the blockchain ledger to include signatures collected from other blockchain peers. These signatures can be added to the viewing change message. The viewing change message can also be updated to include suggested changes to the in-progress blockchain.

[0078] Therefore, the initial view change message sent by a blockchain peer to begin viewing the change process may include evidence from most blockchain peers that they are in the same update process for the blockchain.

[0079] In this scenario, when the new primary peer collects 2f+1 view change messages, it can be ensured that at least f+1 view change messages originate from non-faulty nodes. Furthermore, the new primary peer may only need to wait for one view data message (instead of 2f+1 view data messages) containing the blockchain's checkpoint / current state before sending a new view message. By waiting for a single view data message, the new primary peer can ensure that the ongoing changes to the blockchain state identified in the view change message match the current state / checkpoint of the blockchain in the view data message. Therefore, significant time can be saved for blockchain processes where view changes are in progress. Additionally, only one checkpoint message needs to be processed instead of 2f+1.

[0080] To improve the viewing change process for ongoing updates to the blockchain state, an exemplary embodiment introduces changes to both the preparation message used during the pBFT consensus process and the viewing change message used during the viewing change process.

[0081] Figure 1A A blockchain network 100 for performing a view of changes is illustrated according to an exemplary embodiment. (Reference) Figure 1A Blockchain network 100 includes multiple blockchain peers 112, 114, 116, and 118, which share the management of blockchain 110, which may include, for example, Figure 7A The example illustrates a hash-linked blockchain and a state database, among others. Blockchain network 100 can be a blockchain requiring permission to access blockchain 110. Blockchain peers 112-118 grant access to blockchain 110. Blockchain network 100 does not include centralized management; instead, it is collaboratively managed in a decentralized manner by a group of blockchain peers 112-118. Blockchain 110 is replicated across each of blockchain peers 112-118. Furthermore, consensus is used to ensure consistency between the states of the replicas stored on blockchain peers 112-118.

[0082] In this example, blockchain peers 112-118 operate based on the Practical Byzantine Fault Tolerance (pBFT) consensus protocol. In this context, blockchain peers 112-118 identify the primary peers that act as leaders when data is added to blockchain 110. Primary peer 112 can receive requests from client 120 to store new transactions on blockchain 110. Meanwhile, the remaining blockchain peers can be referred to as "followers" of the participating leader peer. pBFT consensus works even in the presence of faulty nodes. In this example, it is assumed that at most f faulty nodes can exist in a blockchain network comprising n nodes, where n is equal to or greater than 3f+1. Therefore, to ensure consensus among blockchain peers, at least 2f+1 nodes must agree. That is, if f nodes are faulty, 2f ensures that at least half of the nodes are not faulty. Furthermore, by adding one, it ensures that there are always more fault-free nodes than faulty nodes.

[0083] Figure 1B The following is illustrated according to an exemplary embodiment: Figure 1A The consensus process 100B is executed by the blockchain network. In this example, a new block is added based on the consensus reached among blockchain peers 112-118. Figure 1ABlockchain 110 is shown. In this example, blockchain peer 112 is the current master blockchain peer among blockchain peers 112-118. However, the master blockchain changes over time. For example, each peer 112-118 may become the master peer based on a cyclical approach or other time-consuming methods. Furthermore, although four blockchain peers with one master peer are shown in this example for ease of description, it should be understood that a blockchain network can have many blockchain peers, including multiple master peers simultaneously serving different subsets of follower peers.

[0084] refer to Figure 1B The primary peer 112 can receive a request from the client 120 to store new transactions in the blockchain 110. This step is omitted in the diagram. In the pre-preparation phase 131, the primary peer 112 can sort the transactions into blocks and broadcast the list of sorted transactions to the other blockchain peers 114, 116, and 118.

[0085] During the preparation phase 132, blockchain peers 114, 116, and 118 can receive an ordered list of transactions. Each blockchain peer (114, 116, and 118) can calculate the hash code of the newly created block, which includes the hash of the transaction and the final world state to be added to the state database, and broadcast a preparation message including the resulting hash to other blockchain peers (114, 116, and 118) in the network. Therefore, blockchain peers can receive preparation messages from other blockchain peers.

[0086] When a blockchain peer receives a preparation message that meets a predetermined threshold (e.g., 2f+1), in commit phase 133, the blockchain peer can generate a commit message and transmit it to other blockchain peers. When a blockchain peer receives a commit message that meets the predetermined threshold, the blockchain peer can commit a block to a local copy of blockchain 110, which includes the blockchain and updates to the state database.

[0087] According to various embodiments, the primary peer can be changed during each look (e.g., pBFT consensus round). For example, if a predetermined amount of time has elapsed and the primary peer has not broadcast a request to subsequent peers, a look-change protocol can be used to replace the primary peer. If necessary, a majority of honest nodes can vote in favor of the legitimacy of the current primary node and replace it with the next primary node that is online.

[0088] Figure 1C The following is illustrated according to an exemplary embodiment: Figure 1AThe blockchain network executes a view change process 100C. In this example, primary peer 112 is detected as faulty. For example, client 120 may submit a request to primary peer 112, which then fails to respond within a predetermined time period, timeout, etc. When subsequent blockchain peers 114, 116, and 118 suspect that primary peer 112 has become faulty, blockchain peers 114, 116, and 118 may send a view change message 141. In related technologies, a view change message can be a heavyweight view change message that includes the latest checkpoint of the blockchain ledger. For example, the most recent checkpoint may include the current state of the blockchain. As another example, a view change message can be a lightweight view change message that only includes the next view sequence number (i.e., the identifier of the next primary peer).

[0089] When blockchain peers 114, 116, and 118 receive enough view change messages (e.g., 2f+1), they can submit view data message 142. View data message 142 can be used only if view change message 141 is a lightweight message. View data message 142 can be signed and used as evidence for the next phase. View data message 142 includes the most recent checkpoint of the blockchain and any next proposal (in progress) (if any). However, view data message 142 is only sent to the new master peer, which in this example is blockchain peer 114. After receiving enough view change messages 142 to satisfy a predetermined threshold (e.g., 2f+1), the new master peer 114 broadcasts a new view message 143, which includes the view data messages 142 from the other blockchain peers at the predetermined threshold, thus serving as evidence of the validity of the new view.

[0090] Figure 2A A blockchain structure configuration 200 according to an example embodiment is shown. (Reference) Figure 2AThe blockchain architecture 200 may include certain blockchain components, such as a set of blockchain nodes 202. Blockchain nodes 202 may include one or more nodes 204-210 (these four nodes are described by way of example only). These nodes participate in multiple activities, such as the blockchain transaction increment and verification process (consensus). One or more of the blockchain nodes 204-210 may endorse transactions based on an endorsement policy and may provide ordering services for all blockchain nodes in the architecture 200. A blockchain node may initiate blockchain authentication and attempt to write to the immutable blockchain ledger stored in 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 that are linked to an application programming interface (API) 222 to access and execute stored program / application code 220 (e.g., chaincode, smart contracts, etc.), which may be created according to the customized configuration sought by the participants and may maintain its own state, control its own assets, and receive external information. This can be deployed as transactions and installed on all blockchain nodes 204-210 via attachment to the distributed ledger.

[0091] The blockchain infrastructure or platform 212 may include layers of blockchain data and services (e.g., cryptographic trust services, virtual execution environments, etc.), and support physical computer infrastructure that can be used to receive and store new transactions and provide access to auditors attempting to access data entries. The blockchain layer 216 may expose interfaces providing access to the processor code and the virtual execution environment necessary for participation in the physical infrastructure 214. The cryptographic trust service 218 can be used to verify transactions such as asset exchange transactions and maintain information privacy.

[0092] Figure 2A The blockchain architecture configuration can process and execute program / application code 220 via one or more interfaces exposed by the blockchain platform 212 and the services provided. Code 220 can control blockchain assets. For example, code 220 can store and transmit data and can be executed by nodes 204-210, conforming to its execution in the form of smart contracts and associated chaincode with conditional or other code elements. As a non-limiting example, smart contracts can be created to execute alerts, updates, and / or conform to other notifications of changes, updates, etc. Smart contracts themselves can be used to identify authorization and access requirements associated with the ledger and the rules associated with their use. For example, a smart contract (or chaincode executing the logic of a smart contract) can read blockchain data 226, which can be processed by one or more processing entities (e.g., virtual machines) included in the blockchain layer 216 to generate a result 228 including data to be written to the blockchain. Physical infrastructure 214 can be used to retrieve any data or information described herein.

[0093] Smart contracts can be created via high-level applications and programming languages ​​and then written into blocks in a blockchain. Smart contracts can include executable code that is registered, stored, and / or replicated with the 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 conditions associated with the smart contract. The execution of a smart contract can trigger trusted modifications to the state of the 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 via one or more consensus protocols.

[0094] Smart contracts can write data to the blockchain in key-value pair format. Furthermore, 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 one or more blocks within the blockchain. This code can be used to create temporary data structures in virtual machines or other computing platforms. Data written to the blockchain can be public and / or can be encrypted and maintained as private. Temporary data used / generated by smart contracts is maintained in memory by the supplied execution environment and is then deleted once the data required by the blockchain is identified.

[0095] Chaincode can include a code interpretation (e.g., logic) of a smart contract. For example, chaincode can include a wrapper and deployable version of logic within a smart contract. As described herein, chaincode can be program code deployed on a computing network, where it is executed and verified together by a chain of validators during the consensus process. Chaincode can receive hashes and retrieve hashes from the blockchain associated with a data template created using a previously stored feature extractor. If the hash of the hash identifier matches a hash created from the stored identifier template data, the chaincode sends an authorization key to the requested service. Chaincode can write data associated with cryptographic details to the blockchain.

[0096] Figure 2B An example of a blockchain transaction flow 250 between nodes of a blockchain according to an example embodiment is shown. (Reference) Figure 2BThe transaction flow may include client node 260 sending a transaction proposal 291 to endorsing peer node 281. Endorsing peer 281 may verify the client signature and execute chaincode functions to initiate the transaction. Output may include the chaincode result, a set of key / value versions read from the chaincode (read set), and a set of key / value pairs written to the chaincode (write set). Here, endorsing peer 281 may determine whether to endorse the transaction proposal. If approved, a proposal response 292 is sent back to client 260 along with the endorsement signature. Client 260 assembles the endorsement into a transaction payload 293 and broadcasts it to ordering service node 284. Ordering service node 284 then delivers the ordered transactions as blocks on the channel to all peers 281-283. Before being committed to the blockchain, each peer 281-283 may verify the transaction. For example, a peer may check the endorsement policy to ensure that the correct allocation for the specified peer has been signed and verify the signature against the transaction payload 293.

[0097] Refer again Figure 2B The client node initiates transaction 291 by constructing a request and sending it to peer node 281, which acts as the endorser. Client 260 may include an application utilizing a supporting Software Development Kit (SDK) that leverages available APIs to generate transaction proposals. These proposals request chaincode functions to read and / or write data to the ledger (i.e., write new key-value pairs for assets). The SDK may be used to encapsulate the transaction proposals into an appropriate architectural format (e.g., a protocol buffer over a Remote Procedure Call (RPC)) and employ the client's cryptographic certificate to generate a unique signature for the transaction proposals.

[0098] In response, the endorsing peer node 281 can verify that (a) the transaction proposal is well-formed, (b) the past transaction has not yet been committed (replay attack protection), (c) the signature is valid, and (d) the committer (client 260 in this example) is correctly authorized to perform the proposed operation on the channel. The endorsing peer node 281 can input the transaction proposal as variables for the invoked chaincode function. The chaincode is then executed against the current state database to produce a transaction result including the response value, a read set, and a write set. However, the ledger is not updated at this point. At 292, this set of values, along with the signature of the endorsing peer node 281, is passed back to client 260's SDK as a proposal response 292, which parses the payload to be consumed by the application.

[0099] In response, client 260's application checks / verifies the endorsed peer signature and compares the proposed response to determine if they are identical. If the chaincode only queries the ledger, the application checks the query response and typically does not order node service 284 commit the transaction. If the client application wants to commit the transaction to order node service 284 to update the ledger, the application determines whether the specified endorsement policy has been satisfied before commit (i.e., whether all peer nodes necessary for the transaction have endorsed it). Here, the client may include only one of the parties in the transaction. In this case, each client may have its own endorsement node, and each endorsement node will be required to endorse the transaction. This architecture ensures that even if the application chooses not to check the response or otherwise forwards unendorsed transactions, the endorsement policy will still be enforced by the peers and supported during the commit confirmation phase.

[0100] After a successful check, in step 293, client 260 assembles the endorsement into a transaction proposal and broadcasts the transaction proposal and response to sorting node 284 within a transaction message. A transaction may contain a read / write set, endorser peer signatures, and channel ID. Sorting node 284 does not need to examine the entire contents of a transaction to execute its operation; instead, it can simply receive transactions from all channels in the network, sort them by channel in chronological order, and create transaction blocks by channel.

[0101] These blocks are passed along the channel from sorting node 284 to all peer nodes 281-283. The data portions within the blocks can be verified to ensure the endorsement policy is satisfied and to ensure that there have been no changes to the ledger state of the read set variables since the read set was generated by the transaction execution. Furthermore, in step 295, each peer node 281-283 appends a block to the chain of the channel, and for each valid transaction, the write set is committed to the current state database. Events can be emitted to notify client applications that the transaction (call) has been immutably appended to the chain, and to indicate whether the transaction is valid or invalid.

[0102] Figure 3AAn example of a permissioned blockchain network 300 is shown, characterized by a distributed, decentralized peer-to-peer architecture. In this example, blockchain user 302 can initiate transactions to a permissioned blockchain 304. In this example, transactions can be deployments, invocations, or queries, and can be issued via client-side applications utilizing the SDK, directly through APIs, etc. The network can provide access to regulators 306, such as auditors. Blockchain network operator 308 manages member permissions, such as registering regulator 306 as an "auditor" and blockchain user 302 as a "client." Auditors can be restricted to querying the ledger only, while clients can be authorized to deploy, invoke, and query certain types of chaincode.

[0103] Blockchain developer 310 can write chaincode and client applications. Blockchain developer 310 can deploy chaincode directly to the network via an interface. To include credentials from traditional data source 312 in the chaincode, developer 310 can use out-of-band connections to access the data. In this example, blockchain user 302 connects to the permissioned blockchain 304 via peer node 314. Before any transaction, peer node 314 retrieves the user's registration and transaction certificates from the Certificate Authority 316, which manages user roles and permissions. In some cases, blockchain users must possess these digital certificates to transact on the permissioned blockchain 304. Simultaneously, users attempting to utilize the chaincode may need to verify their credentials on traditional data source 312. To confirm user authorization, the chaincode can use an out-of-band connection to that data via a traditional processing platform 318.

[0104] Figure 3B Another example of a permissioned blockchain network 320 is shown, characterized by a distributed, decentralized peer-to-peer architecture. In this example, blockchain user 322 can submit transactions to a permissioned blockchain 324. In this example, transactions can be deployments, invocations, or queries, and can be issued via client-side applications utilizing the SDK, directly through APIs, etc. The network can provide access to regulators 326, such as auditors. Blockchain network operator 328 manages member permissions, such as registering regulator 326 as "auditors" and blockchain user 322 as "clients." Auditors can be restricted to querying the ledger only, while clients can be authorized to deploy, invoke, and query certain types of chaincode.

[0105] Blockchain developer 330 writes chaincode and client applications. Blockchain developer 330 can deploy the chaincode directly to the network via an interface. To include credentials from a traditional data source 332 in the chaincode, developer 330 can use an out-of-band connection to access the data. In this example, blockchain user 322 connects to the network through peer node 334. Before any transaction, peer node 334 retrieves the user's registration and transaction certificates from a certificate authority 336. In some cases, blockchain users must possess these digital certificates to transact on the permissioned blockchain 324. Simultaneously, users attempting to use the chaincode may need to verify their certificates on the traditional data source 332. To confirm user authorization, the chaincode can use an out-of-band connection to that data via a traditional processing platform 338.

[0106] In some implementations, the blockchain described herein can be a permissionless blockchain. In contrast to permissioned blockchains that require permission to join, anyone can join a permissionless blockchain. For example, to join a permissionless blockchain, a user can create a personal address and begin interacting with the network by submitting a transaction and thus adding an entry to the ledger. Additionally, all parties can choose to run nodes on the system and employ a mining protocol to help verify transactions.

[0107] Figure 3C A process 350 of processing transactions by a permissionless blockchain 352 comprising multiple nodes 354 is illustrated. A sender 356 expects to send payment or some other form of value (e.g., contract, medical record, agreement, goods, services, or any other asset that can be encapsulated in a digital record) to a receiver 358 via the permissionless blockchain 352. In one embodiment, each of the sender device 356 and the receiver device 358 may have a digital wallet (associated with the blockchain 352) that provides user interface control and displays transaction parameters. In response, the transaction is broadcast to the nodes 354 throughout the blockchain 352. Depending on the network parameters of the blockchain 352, the nodes verify the transaction 360 based on rules established by the creator of the permissionless blockchain 352 (which may be predefined or dynamically assigned). For example, this may include verifying the identities of the parties involved. Transaction can be verified immediately, or it can be queued along with its transaction, and the nodes 354 determine whether the transaction is valid based on a set of network rules.

[0108] In structure 362, valid transactions are formed into blocks and sealed with locks (hashes). This process can be performed by nodes in mining nodes 354. Mining nodes can utilize additional software specifically designed for mining and creating blocks in the permissionless blockchain 352. Each block can be identified by a hash (e.g., a 256-bit number) created using an algorithm agreed upon by the network. Each block may include a header, a pointer or reference to the hash of the header of a previous block in the chain, and a set of valid transactions. The reference to the hash of the previous block is associated with the creation of a secure, independent blockchain.

[0109] Blocks must be verified before they can be added to the blockchain. Verification of permissionless blockchains (352) may include proof-of-work (PoW) as a solution to a puzzle derived from the block header. Although in Figure 3C Not shown in the example, but another process used to verify blocks is proof of stake. Unlike proof of work, where the algorithm rewards miners who solve mathematical problems, proof of stake, which uses their wealth to deterministically select the creator of a new block, is also defined as a "stake." A similar proof is then performed by the selected / picked node.

[0110] By mining 364 blocks, nodes attempt to solve the block by incrementally changing a variable until the solution satisfies the network's objective. This creates Proof-of-Work (PoW), ensuring correct responses. In other words, a potential solution must prove that computational resources are exhausted while solving the problem. In some types of permissionless blockchains, miners can be rewarded with value (e.g., coins) for correctly mining blocks.

[0111] Here, in addition to the blockchain connection, the PoW process makes modifying the blockchain extremely difficult because an attacker must modify all subsequent blocks in order to accept a modification to a single block. Furthermore, as new blocks are mined, the difficulty of modifying a block increases, and the number of subsequent blocks also increases. Through distribution 366, successfully verified blocks are distributed through the permissionless blockchain 352, and all nodes 354 add the blocks to the majority chain, which is the auditable ledger of the permissionless blockchain 352. Furthermore, the value in a transaction submitted by sender 356 is stored or otherwise transferred to the digital wallet of recipient device 358.

[0112] Figure 4A The format of preparation message 410 and commit message 420 for blockchain consensus according to an example embodiment is shown. For example, preparation message 410 and commit message 420 can be used to replace... Figure 1B The pBFT consensus process 100B shown illustrates the traditional prepare and commit messages. (Reference) Figure 4AThe preparation message 410 may include a view number 412 indicating the next primary peer (e.g., from a predefined list, etc.) and a sequence number 413 indicating the block number of the next block to be added to the blockchain. For example, if the most recently stored block on the blockchain is block #15, then sequence number 413 will store the value 16 indicating that block #16 is the next block to be added.

[0113] According to various embodiments, the preparation message 410 may also include a hash of the latest proposal 411 to be added to the blockchain. Preparation messages in related technologies do not include a hash of the latest proposal. Here, the latest proposal 411 may represent transaction content / blocks of data to be added to the blockchain and are in the consensus process between blockchain peers. For example, transaction proposal 411 may include key-value pairs to be updated as a result of a blockchain transaction to be added to the blockchain ledger. By hashing the latest proposal 411, the size of the preparation message 410 remains small while still providing evidence of the current state of the blockchain ledger in the process of being updated (in progress).

[0114] The preparation message 410 also includes a signature 414 from the blockchain peer that created the preparation message 410. The signature 414 is based on the hashes of the most recent suggestion 411, view number 412, and sequence number 413. Therefore, the signature 414 verifies that the blockchain peer has the following state of the blockchain. As further explained below, the preparation message 410 also includes a hash puzzle 415.

[0115] After receiving sufficient preparation messages 410, the blockchain peers can create and send a commit message 420. The commit message includes a summary of the blockchain proposal 421 to be added to the blockchain ledger, a view number 422 indicating the next primary peer (e.g., from a predefined list), and a sequence number 423 indicating the block number of the next block in the blockchain to be added. Here, view number 422 and sequence number 423 correspond to view number 412 and sequence number 413 in preparation message 410. The commit message 420 also includes a solution 424 to the hash puzzle 415 provided within preparation message 410.

[0116] When a blockchain peer collects a sufficient number of commit messages 420, the blockchain peer can update the blockchain. For example, when commit messages 420 are received from a quorum of blockchain peers in the group, an update to the blockchain is performed (e.g., identified by digest 421). In this example, the proof of the blockchain update used by the blockchain peer is based on the collected commit messages and corresponding preparation messages, which include the signatures of the blockchain peers proving the change in the state of the blockchain.

[0117] In an example embodiment, hash puzzle 415 can be used to replace the signature on commit message 420. Each sending blockchain peer sends a prepare message 410, also adding its signature 414.

[0118] In blockchain consensus, the system needs a way to verify that the blockchain peer has also sent the commit message 420. Typically, this is done by signing the commit message. However, the sending blockchain peer has already added a signature 414 to the prepare message. Therefore, signing the commit message 420 is not so secure, as it exposes the signature again. Instead, the sending blockchain peer can sign the prepare message 410 with signature 414 and also add a hash puzzle 415, such as y = Hash(x), where 'x' is a random secret.

[0119] The sending blockchain peer can then reveal solution 424 to hash puzzle 415 (where solution = X) within commit message 420. To verify hash puzzle 415, the receiving blockchain peer hashes the solution 424 provided in the commit message 420 from the sending blockchain peer to determine if it achieves the same value as hash puzzle 415 in the preparation message 410. If the hash version of solution 424 is the same as hash puzzle 415, the receiving blockchain peer knows that the same sending blockchain peer sent commit message 420 and preparation message 410.

[0120] By modifying the preparation message 410 to include the latest proposed sequence 411 identifying ongoing changes to the blockchain state, and also including sending the signatures 414 of the blockchain peers, it is possible to... Figure 4B The example constructs a new view change message 430. (See reference.) Figure 4B The View Change Message 430 includes a hash suggestion 431 for an ongoing change to the blockchain state. The hash suggestion 431 is used to conserve the amount of data needed to represent a change to the blockchain state. Here, the hash suggestion 431 may include the hash of a block / transaction that is in the process of being added to the blockchain ledger before the current primary peer experiences a timeout / failure. The View Change Message 430 also includes metadata 432, which contains information about the blockchain state, including the view number (next primary peer), sequence number (next block in the chain), etc.

[0121] Additionally, the View Change Message 432 also includes signatures 433, 434, and 435 of the blockchain peers collected from the Preparation Message 410 during the preparation phase. Signatures 433, 434, and 435 correspond to signature 414 in the Preparation Message 410. Therefore, the View Change Message 430 can provide proof of ongoing changes to the blockchain via hash proposal 431, the current state of the blockchain via metadata 432, and the number of blockchain peers that agree on hash proposal 431 and state 432 via signatures 433, 434, and 435. In response to the detection of a failure in the current primary peer 442, the View Change Message 432 can be... Figure 4C Each blockchain peer in the group shown is constructed accordingly (e.g., any one of blockchain peers 444, 446, and 448). For example, a faulty master peer 442 is detected in response to a timeout of a request from client 450 to add data to the blockchain ledger. In this case, the timeout may occur at some point in the process of generating new data, but before the new data is added to the blockchain.

[0122] like Figure 4C As further illustrated in process 400C, a new primary peer is selected based on metadata 432 along with a view change message 430. Here, the new primary peer is identified as blockchain peer 444. Therefore, subsequent peers 446 and 448 generate and send view change messages 432 to the new primary peer 444, requesting a view of changes to the blockchain. When the new primary peer 444 receives the view change message 430 from a predetermined threshold (e.g., 2f+1) of the blockchain peers, it can verify the ongoing changes to the blockchain ledger based on a hash suggestion 431 included in the view change message. Therefore, the new primary peer 444 only needs one view data message 449 to verify the latest state of the blockchain.

[0123] In this example, the view data message 449 includes a checkpoint for the blockchain. If the checkpoint in view data message 449 matches the hash suggestion 431 in a quorum of view change messages, the new master peer 444 can ensure that the blockchain peers are not "behind" the blockchain and are in the current / recently changed state of the blockchain. Therefore, the new master peer 444 can send new view messages to the remaining blockchain peers 442, 446, and 448, notifying them that the view has been changed to the new master peer 444. Thus, the new master peer 444 does not need to wait for 2f+1 view data messages, but only needs to wait for one view data message 449 to verify the state of the blockchain.

[0124] In short, after collecting 2f+1 view change messages 430, the new master peer 444 knows what the latest recommendation sequence is from hash suggestions 431 and metadata 432. Some peers may be later, and some may be the first peers to send view data messages to the new master peer. The new master peer 444 must wait for view data messages from updated subsequent peers before it can proceed.

[0125] In this example, the new primary peer only needs to wait for one view data message when enough subsequent peers have received 2f+1 preparation messages from other subsequent peers. That is, if 2f+1 subsequent peers have received 2f+1 preparation messages with the latest proposed hash and the signatures of the subsequent peers, the view change message can be constructed with sufficient change proofs. However, if not enough subsequent peers have received preparation messages (i.e., less than 2f+1), there are not enough proofs about the latest hash proposal in progress. Therefore, the new primary peer must wait for 2f+1 view data messages, such as... Figure 1C As shown in process 100C.

[0126] Figure 5A A method 500 for performing a view change based on a view change message, according to an example embodiment, is shown. As a non-limiting example, method 500 may be performed by a program running on a blockchain peer, etc. References Figure 5A In section 502, the method may include receiving a view change message that requests a view change from a previous primary peer to a primary peer in the blockchain. For example, the view change message may be received from a subsequent peer within the blockchain network.

[0127] In a 504 error, the method may include having a prior primary peer identify an ongoing state change in the blockchain based on metadata from a received view change message. For example, a blockchain state change may include a blockchain transaction stored within a data block to be added to the blockchain. Transactions may include key-value pairs of blockchain values ​​such as updates, deletions, and additions, and these are stored in the blockchain ledger's state database.

[0128] At 506, the method may include verifying, based on received view data messages, that a change in the blockchain state corresponds to a recent change in the blockchain. For example, a change in the blockchain state may be identified from view data messages received from subsequent peers, and the view data messages include the state of the blockchain with ongoing changes to the blockchain. At 508, the method may include sending new view messages to other subsequent peers, the messages including ongoing changes to the blockchain state. For example, sending may include sending a new view message in response to receiving only one view data message.

[0129] In some embodiments, an ongoing change to the blockchain state may include a proposed data block to be committed. In some embodiments, the identification may further include verifying that a view change message has been received from a predetermined threshold of subsequent peers. In some embodiments, for each view change message, metadata may include the next view number and the hash change of the blockchain. In some embodiments, a view data message may include a plurality of preparation messages broadcast by the primary peer and received by subsequent peers. In some embodiments, verification may include verifying that the ongoing change to the blockchain state is included in a predetermined number of preparation messages stored within the view data message.

[0130] In some embodiments, a change in progress can be a change to the blockchain state that has not yet been committed to the peer receiving messages to view the change and view the data. However, in some cases, the change may have already been committed. By collecting messages identifying changes in progress, peers can ensure that different changes are not committed to the blockchain when a blockchain peer that has already committed a change in progress is unavailable.

[0131] Figure 5B A method 510 for generating and viewing change messages is illustrated according to an example embodiment. For example, method 510 can be performed by a program or the like running on a blockchain peer. References Figure 5B In section 512, the method may include determining that the current master peer of the blockchain has become a failed peer. For example, a blockchain peer may detect that the current master peer has timed out during a consensus process performed among multiple blockchain peers in the blockchain network.

[0132] In 514, the method may include having the current master peer identify that a state change of the blockchain is in progress. For example, the peer may have already received a pre-prepared message from the current master peer that includes the in-progress change of the blockchain state. In 516, the method may include generating a view change message that includes a next view number and a hash of the in-progress change of the blockchain state. Furthermore, in 518, the method may include transmitting the view change message to a new master peer.

[0133] In some embodiments, the method may further include storing signatures from other subsequent peers of the blockchain within the viewed change message, the signatures agreeing on the ongoing change to the blockchain state. In some embodiments, ongoing changes to the blockchain state and signatures are collected during the preparation phase of Byzantine Fault Tolerance (BFT) consensus. For example, ongoing changes to the blockchain state include new blocks to be added to the blockchain.

[0134] Figure 5C A method 520 for generating a preparation message according to an example embodiment is shown. (See reference...) Figure 5CAt 522, the method may include receiving a pre-preparation message from the primary peer that includes proposal data to be added to the blockchain. At 524, the method may include generating a preparation message that includes a hash of the proposal data to be added to the blockchain and the signatures of the consensus peers. At 526, the method may include adding a hash puzzle of the consensus peers to the preparation message. At 528, the method may include sending the preparation message with the hash puzzle to multiple other consensus peers of the blockchain.

[0135] In some embodiments, the method may further include determining, based on preparation messages received from other consensus peers, that other consensus peers agree to add proposed data to the blockchain. In some embodiments, the method may further include generating a commit message that includes a solution to a hash puzzle added to the preparation message, and sending the commit message to a plurality of other consensus peers. In some embodiments, the commit message does not include signatures of the consensus peers. In some embodiments, the method may include generating a hash puzzle via a hash of a predefined secret value. In some embodiments, the method may further include receiving preparation messages from other consensus peers, wherein the received preparation messages include hash puzzles added by other respective consensus peers.

[0136] Figure 5D A method 530 for generating a viewing data message according to an example embodiment is shown. (Reference) Figure 5D At 532, the method may include receiving a view change message, which includes a next view value and a hash of an ongoing change to the blockchain state. In response to a predetermined threshold of receiving a view change message, at 534, the method may include generating a view data message, which includes a prepared message signed by other subsequent peers having evidence of an ongoing change to the blockchain state. At 536, the method may include sending the generated view data message, which includes the signed prepared message, to the primary peer.

[0137] In some embodiments, the method may further include collecting a signature preparation message during the preparation phase of the Byzantine Fault Tolerance (BFT) consensus. In some embodiments, the signature preparation message may include metadata including a hash of an ongoing change to the blockchain state and a view number of the new master peer. In some embodiments, the signature preparation message may also include a hash puzzle added by other subsequent peers. In some embodiments, the method may further include receiving the ongoing change to the blockchain state from the master peer prior to a master peer failure.

[0138] Figure 6A An example system 600, according to an example embodiment, includes physical infrastructure 610 configured to perform various operations. References Figure 6APhysical infrastructure 610 includes modules 612 and 614. Module 614 includes a blockchain 620 and a smart contract 630 (which may reside on the blockchain 620), which can perform any operational 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 write information written 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, memory, and / or wireless communication devices. Furthermore, module 612 and module 614 may be the same module.

[0139] Figure 6B Another example system 640, configured to perform various operations according to an example embodiment, is shown. (Reference) Figure 6B System 640 includes modules 612 and 614. Module 614 includes a blockchain 620 and a smart contract 630 (which may reside on the blockchain 620), which can perform any operational 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 write information written or read from one or more smart contracts 630 and / or blockchain 620. Modules 612 and 614 may include one or more computers, servers, processors, memory, and / or wireless communication devices. Furthermore, modules 612 and 614 may be the same module.

[0140] Figure 6C The illustration depicts an example system, according to an exemplary embodiment, configured to utilize smart contract configuration between contracting parties and an intermediary server configured to enforce smart contract terms on a blockchain. References Figure 6C Configuration 650 can represent a communication session, asset transfer session, or process or procedure driven by a smart contract 630 that explicitly identifies one or more user devices 652 and / or 656. The execution, operation, and results of the smart contract execution can be managed by server 654. The content of smart contract 630 may require digital signature by one or more entities 652 and 656 who are parties to the smart contract transaction. The results of smart contract execution can be written to blockchain 620 as a blockchain transaction. Smart contract 630 resides on blockchain 620, which can reside on one or more computers, servers, processors, memory, and / or wireless communication devices.

[0141] Figure 6D A system 660 including a blockchain is shown according to an example embodiment. Reference Figure 6DAs an example, Application Programming Interface (API) Gateway 662 provides a public interface for accessing blockchain logic (e.g., smart contract 630 or other chaincode) and data (e.g., distributed ledger, etc.). In this example, API Gateway 662 is a public interface for performing transactions (calls, queries, etc.) on the blockchain by connecting one or more entities 652 and 656 to a blockchain peer (i.e., server 654). Here, server 654 is a peer component of the blockchain network that holds a copy of the world state and allows clients 652 and 656 to query data on the world state and submit transactions to the distributed ledger in the blockchain network, whereby the endorsing peer will run smart contract 630 according to smart contract 630 and the endorsement policy.

[0142] The above embodiments can be implemented in hardware, as a computer program executed by a processor, firmware, or a combination thereof. The computer program can be contained on a computer-readable medium, such as a storage medium. For example, the computer program can reside in random access memory (“RAM”), flash memory, read-only memory (“ROM”), erasable programmable read-only memory (“EPROM”), electrically erasable programmable read-only memory (“EEPROM”), registers, hard disks, removable disks, optical disc read-only memory (“CD-ROM”), or any other form of storage medium known in the art.

[0143] An exemplary storage medium may be coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium may be integrated with the processor. The processor and storage medium may reside in an application-specific integrated circuit (“ASIC”). Alternatively, the processor and storage medium may reside as discrete components.

[0144] Figure 7A The illustration shows a process 700 in which a new block is added to the distributed ledger 720 according to an example embodiment, and Figure 7B The illustration shows the contents of a new data block structure 730 for blockchain according to an example embodiment. (Refer to...) Figure 7AA client (not shown) can submit transactions to blockchain nodes 711, 712, and / or 713. The client can be an instruction received from any source to formulate an activity on blockchain 720. As an example, the client can act on behalf of a requester (e.g., a device, person, or entity) to propose the application of a transaction to the blockchain. Multiple blockchain peers (e.g., blockchain nodes 711, 712, and 713) can maintain the state of the blockchain network and a copy of the distributed ledger 720. Different types of blockchain nodes / peers can exist in the blockchain network, including peers that endorse and approve transactions proposed by clients, and peers that verify, approve, confirm, and submit transactions to the distributed ledger 720. In this example, blockchain nodes 711, 712, and 713 can act as an endorser node, a submitter node, or both.

[0145] Distributed ledger 720 comprises a blockchain storing immutable, ordered records in blocks, and a state database 724 (current world state) maintaining the current state of blockchain 722. Each channel can have its own distributed ledger 720, and each peer maintains its own copy of the distributed ledger 720 for each channel of its members. Blockchain 722 is a transaction log constructed as hash-linked blocks, where each block contains a sequence of N transactions. Blocks may include, for example... Figure 7B The various components are shown. Block chains can be generated by adding the hash of the previous block header to the current block header. Figure 7A (As indicated by the arrow in the diagram). In this way, all transactions on Blockchain 722 are ordered and cryptographically linked together, preventing tampering with the blockchain data without breaking the hash links. Furthermore, due to the links, the last block in Blockchain 722 represents every transaction that came before it. Blockchain 722 can be stored on a peer-to-peer file system (local or attached storage), with the peer-to-peer file system supporting attaching only the blockchain workload.

[0146] The current state of blockchain 722 and distributed ledger 722 can be stored in state database 724. Here, the current state data represents the latest values ​​of all keys ever included in the chain transaction log of blockchain 722. Chaincode calls execute transactions against the current state in state database 724. To make these chaincode interactions highly efficient, the latest values ​​of all keys are stored in state database 724. State database 724 can include indexed views from the transaction log of blockchain 722, so indexed views can be regenerated from the chain at any time. State database 724 can be automatically restored (or generated if needed) before accepting a transaction.

[0147] The endorsing node receives a transaction from the client and endorses it based on the simulation results. The endorsing node holds a smart contract representing the simulated transaction proposal. When an endorsing node endorses a transaction, it creates a transaction endorsement, a signed response from the endorsing node to the client application instructing the client to endorse the simulated transaction. The method of endorsing a transaction depends on the endorsement policy, which can be specified within the chaincode. An example of an endorsement policy is "most endorsing peers must endorse the transaction." Different channels can have different endorsement policies. The endorsed transaction is forwarded by the client application to the ordering service 710.

[0148] The sorting service 710 accepts endorsed transactions, sorts them into blocks, and delivers these blocks to the commit peer. For example, the sorting service 710 can initiate new blocking when a transaction threshold is reached, a timer times out, or another condition is met. Figure 7A In the example, blockchain node 712 is a peer that has received a submission for a new data block 730 to be stored on blockchain 720. The first block in a blockchain can be called the origin block, which includes information about the blockchain, its members, the data stored in it, etc.

[0149] The ordering service 710 can consist of a cluster of ordering nodes. The ordering service 710 does not handle transactions, smart contracts, or maintain a shared ledger. Instead, the ordering service 710 can accept endorsed transactions and specify the order in which these transactions are submitted to the distributed ledger 720. The architecture of the blockchain network can be designed to make specific implementations of "ordering" (e.g., Solo, Kafka, BFT, etc.) pluggable components.

[0150] Transactions are written to the distributed ledger 720 in a consistent order. This order is established to ensure that updates to the state database 724 are valid when submitted to the network. Unlike cryptocurrency blockchain systems (such as Bitcoin) that use cryptographic puzzles or mining for ordering, in this example, the parties to the distributed ledger 720 can choose the ordering mechanism best suited to the network.

[0151] When the sorting service 710 initializes a new data block 730, the new data block 730 can be broadcast to commit peers (e.g., blockchain nodes 711, 712, and 713). In response, each commit 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 commit peer can determine whether the read data present when the endorser simulates the transaction is the same as the current world state in the state database 724. When the commit peer confirms the transaction, the transaction is written to blockchain 722 on the distributed ledger 720, and the state database 724 is updated with the write data from the read and write sets. If the transaction fails, i.e., if the commit peer finds that the read-write set does not match the current world state in the state database 724, the transaction sorted into a block will still be included in the block, but it will be marked as invalid, and the state database 724 will not be updated.

[0152] refer to Figure 7B A new data block 730 (also called a data block) stored on blockchain 722 of the distributed ledger 720 may include multiple data segments, such as a block header 740, block data 750 (the block data portion), and block metadata 760. It should be understood that... Figure 7B The various blocks and their contents shown, such as new data block 730 and its contents, are merely examples and are not intended to limit the scope of the example embodiments. In a regular block, a data segment can store transaction information for N transactions (e.g., 1, 10, 100, 500, 1000, 2000, 3000, etc.) within block data 750.

[0153] The new data block 730 may include previous blocks (e.g., blocks included in the block header 740) Figure 7A The block header 740 may include the hash of the previous block header. The block header 740 may also include a unique block number, the 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 assigned in various orders, such as incremental / sequential starting from zero.

[0154] Block metadata 760 can store multiple fields of metadata (e.g., as byte arrays). Metadata fields may include a signature on block creation, a reference to the last configured block, transaction filters identifying valid and invalid transactions within the block, persistent storage of the last offset of the sorting service for sorting blocks, and so on. The signature, last configured block, and sorting metadata can be added by the sorting service 710. Meanwhile, the block submitter (such as blockchain node 712) can add validity / invalidity information based on endorsement policies, verification of read / write sets, etc. Transaction filters may include byte arrays of size equal to the number of transactions included in block data 750 and verification codes identifying whether a transaction is valid / invalid.

[0155] Figure 7C An embodiment of a blockchain 770 for digital content according to embodiments described herein is illustrated. Digital content may include one or more files and associated information. Files may include media, images, videos, audio, text, links, graphics, animations, web pages, documents, or other forms of digital content. The immutable, append-only aspects of the blockchain serve as a security measure to protect the integrity, validity, and authenticity of the digital content, making it suitable for use in legal proceedings where permissive rules are applied or other settings considering the presentation and use of evidence or digital information are of additional interest. In this context, the digital content may be referred to as digital evidence.

[0156] Blockchains can be formed in various ways. In one embodiment, digital content can be included within and accessed from the blockchain itself. For example, each block of the blockchain can store a hash value (e.g., header, value, etc.) of reference information along 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 previous blocks. This can be illustrated as follows:

[0157]

[0158] In one embodiment, digital content may not be included in the blockchain. For example, the blockchain could store the cryptographic hash of the content of each block without any digital content. The digital content could be stored in a separate storage area or memory address associated with the hash value of the original file. This other storage area could be the same storage device used to store the blockchain, or it could be a different storage area, or even a separate relational database. The digital content of each block can 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 that corresponds to the actual digital content. This operation could be performed, for example, by a database gatekeeper. This can be illustrated as follows:

[0159]

[0160] exist Figure 7C In an example embodiment, blockchain 770 includes multiple blocks 7781, 7782, ... 778 linked by an ordered sequence cryptography. N Where N≥1. Used to link blocks 7781, 7782, ... 778. N The encryption can be any of multiple keyed or unkeyed hash functions. In one embodiment, blocks 7781, 7782, ... 778... N The input follows a hash function that produces an N-bit alphanumeric output (where N is 256 or another number) from an input based on information in the block. Examples of such hash functions include, but are not limited to, SHA-type (SHA stands for Secure Hash Algorithm), Merkle-Damagard algorithm, HAIFA algorithm, Merkle-tree algorithm, nonce-based algorithms, and non-collision-resistant PRF algorithms. In another embodiment, blocks 7781, 7782, ..., 778... N Cryptographically linked functions can be used, but not hash functions. For illustrative purposes, the following description refers to hash functions such as SHA-2.

[0161] Blocks 7781, 7782, ..., 778 in the blockchain N Each block in the blockchain includes a header, a file version, and a value. As a hash result 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.

[0162] The first block 7781 in the blockchain is called the origin block and includes a header 7721, the original file 7741, and an initial value 7761. The hash scheme used for the origin block, and indeed in all subsequent blocks, can vary. For example, all the information in the first block 7781 can be hashed together and at once, or each or a portion of the information in the first block 7781 can be hashed separately, and then the hash of each individual hash portion can be performed.

[0163] Header 7721 may include one or more initial parameters, which may include, for example, a version number, timestamp, random number, root information, difficulty level, consensus protocol, duration, media format, source, descriptive keywords, and / or other information associated with the original file 7741 and / or the blockchain. Header 7721 may be generated automatically (e.g., via blockchain network management software) or manually by blockchain participants. This is consistent with other blocks 7782 to 778 in the blockchain. N The headers in the origin block are different; header 7721 does not reference previous blocks, simply because no previous blocks exist.

[0164] The original file 7741 in the origin block may be, for example, data captured by the device, whether processed or not, before the device is included in the blockchain. The original file 7741 is received from the device, media source, or node via a system interface. The original file 7741 is associated with metadata, which may be generated manually or automatically by a user, device, and / or system processor, for example. The metadata may be included in the first block 7781 associated with the original file 7741.

[0165] The value 7761 in the origin block is an initial value generated based on one or more unique attributes of the original file 7741. In one embodiment, the one or more unique attributes may include the hash value of the original file 7741, the metadata of the original file 7741, and other information associated with the file. In one implementation, the initial value 7761 may be based on the following unique attributes:

[0166] 1) The hash value of the original file calculated using SHA-2

[0167] 2) Initiate Device ID

[0168] 3) Start timestamp of the original file

[0169] 4) Initial storage location of the original file

[0170] 5) Blockchain network member IDs used for the software to currently control the original files and related metadata.

[0171] Other blocks 7782 to 778 in the blockchain N It also has a header, file, and value. However, unlike the first block 7721, the headers in the other blocks are 7722 to 772... NEach of these blocks includes the hash value immediately following the previous block. The hash value of the previous block can be simply the hash of the header of the previous block, or it can be the hash value of the entire previous block. By including the hash value of the previous block in each remaining block, a block-by-block tracing back from the Nth block to the origin block (and the associated original file) can be performed, as indicated by arrow 780, to establish an auditable and immutable chain of custody.

[0172] Headers 7722 to 772 in other blocks N Each of these may also include other information such as version number, timestamp, random number, root information, difficulty level, consensus protocol, and / or other parameters or information associated with the relevant file and / or the blockchain in general.

[0173] Files 7742 to 774 in other blocks N It can be equal to the original file, or it can be a modified version of the original file in the origin block, depending on, for example, the type of processing performed. The type of processing performed can vary between blocks. Processing can involve, for example, any modification to the file in a previous block, such as editing information or otherwise changing the contents of the file, removing information from the file, or adding or appending information to the file.

[0174] Additionally or alternatively, processing may involve only copying a file from a previous block, changing the 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, or performing actions relative to the file and / or its associated metadata on the blockchain. Processes involving analyzing files may include, for example, appending, including, or associating various analyses, statistics, or other information associated with the file.

[0175] Other blocks, from 7762 to 776. N Each value in a block is unique, and all of these values ​​are distinct as a result of the processing performed. For example, a value in any given block corresponds to an updated version of a value in a previous block. The update is reflected in the block hash of the assigned value. Therefore, the value of a block provides an indication of what processing was performed within that block and also allows for tracing back through the blockchain to the original file. This tracing confirms the chain of custody of the file throughout the blockchain.

[0176] For example, consider a scenario where a portion of a file in a previous block is edited, fragmented, or pixelated to protect the identity of the person depicted in the file. In this case, the block containing the edited file would include metadata associated with the edited file, such as how the editing was performed, who performed the editing, the timestamp of the editing, etc. The metadata can be hashed to form this value. Because the metadata of this block is different from the information hashed to form the value in the previous block, these values ​​are distinct from each other and can be recovered during decryption.

[0177] In one embodiment, the value of a previous block can be updated (e.g., a newly calculated hash value) to form the value of the current block when any one or more of the following occur. In this example embodiment, a new hash value can be calculated by hashing all or part of the information mentioned below.

[0178] a) If the file has been processed in any way (e.g., if the file has been edited, copied, modified, accessed, or subjected to some other action), then calculate the new SHA-2 hash value.

[0179] b) New storage location of the file

[0180] c) New metadata associated with the file is identified.

[0181] d) Transferring access to or control of files from one blockchain participant to another.

[0182] Figure 7D An embodiment of a block that can represent the structure of a block in a blockchain 790 according to one embodiment is shown. (Block) i Including header 772 i Document 774 i Sum of 776 i .

[0183] Header 772 i Includes previous blocks i-1 The hash value and additional referencing information, which may be any of the information types discussed herein (e.g., header information containing references, characteristics, parameters, etc.). All blocks reference the hash of previous blocks, except for the originating block. The hash value of a previous block may simply be 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.

[0184] Document 774 iThis includes multiple data sets, such as sequential data 1, data 2, ..., data N. Each data set is tagged with metadata 1, metadata 2, ..., metadata N, describing the content and / or characteristics associated with it. For example, the metadata for each data set may include a timestamp indicating the data, information about the data processing, keywords indicating the people or other content depicted in the data, and / or other characteristics that may help establish the validity and content of the document as a whole, and particularly information about its use of digital evidence, such as those described in conjunction with the embodiments discussed below. In addition to the metadata, each data set may be accompanied by references to previous data, REF1, REF2, ..., REF... N To mark and prevent tampering, gaps in the file, and sequential references through the file.

[0185] Once metadata is assigned to data (e.g., via a smart contract), it cannot be altered unless the hash changes, as this can easily be flagged as invalid. Therefore, metadata creates a data log of information that can be accessed and used by participants in the blockchain.

[0186] Value 776 i It is a hash value or other value calculated based on any type of information discussed earlier. For example, for any given block... i The value of the block can be updated to reflect the processing performed on that block, such as a new hash value, a new storage location, new metadata for the 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 separate from the metadata of the file and header data, in another embodiment, the value may be based partly or entirely on that metadata.

[0187] Once the blockchain 770 is established, at any point in time, the immutable chain of custody for a file can be obtained by querying the blockchain for the transaction history of values ​​across blocks. This query or tracing process can begin by decrypting the value of the currently most recently included block (e.g., the last (Nth) block), and then continue decrypting the values ​​of other blocks until the origin block is reached and the original file is recovered. Decryption can also involve decrypting the header and file information within each block, as well as the associated metadata.

[0188] Decryption is performed based on the type of encryption that occurs within each block. This can involve the use of private keys, public keys, or public-private key pairs. For example, when using asymmetric encryption, blockchain participants or processors in the network can generate public and private key pairs using a pre-defined algorithm. The public and private keys are associated with each other through some mathematical relationship. The public key can be publicly distributed to be used as an address to receive messages from other users, such as an IP address or home address. The private key is kept secret and 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 confident that only the sender could have sent the message.

[0189] Generating key pairs is similar to creating an account on the blockchain, but it doesn't require actual registration anywhere. Furthermore, every transaction executed on the blockchain is digitally signed by the sender using their private key. This signature ensures that only the account owner can track and process documents on the blockchain (if within the permissions defined by smart contracts).

[0190] Figure 8A and 8B Further examples of blockchain use cases that can be incorporated into and used in this paper are shown. Specifically, Figure 8A Example 800 of a blockchain 810 storing machine learning (artificial intelligence) data is shown. Machine learning relies on large amounts of historical data (or training data) to build predictive models for making accurate predictions on new data. Machine learning software (e.g., neural networks, etc.) can typically sift through millions of records to find non-intuitive patterns.

[0191] exist Figure 8A In the example, host platform 820 builds and deploys machine learning models for predictive monitoring of asset 830. Here, host platform 820 can be a cloud platform, industrial server, web server, personal computer, user equipment, etc. Asset 830 can be any type of asset (e.g., machinery or equipment), such as aircraft, locomotives, turbines, medical equipment and devices, oil and gas equipment, ships, vessels, vehicles, etc. As another example, asset 830 can be intangible assets, such as stocks, currency, digital coins, insurance, etc.

[0192] Blockchain 810 can be used to significantly improve both the training process 802 and the prediction process 804 of a trained machine learning model. For example, in 802, historical data can be stored on blockchain 810 by the asset 830 itself (or through a medium, not shown), instead of requiring data scientists / engineers or other users to collect the data. This significantly reduces the collection time required by the host platform 820 when performing predictive model training. For example, using smart contracts, data can be directly and reliably transferred from its origin to blockchain 810. By using blockchain 810 to ensure the security and ownership of the collected data, smart contracts can directly send data from the asset to the individual using the data to build the machine learning model. This allows data to be shared between assets 830.

[0193] The collected data can be stored on Blockchain 810 based on a consensus mechanism. The consensus mechanism pulls in (permissioned nodes) to ensure that the data being recorded is verified and accurate. The recorded data is time-stamped, cryptographically signed, and immutable. Therefore, it is auditable, transparent, and secure. In some cases (i.e., supply chains, healthcare, logistics, etc.), adding IoT devices that write directly to the blockchain can increase the frequency and accuracy of the recorded data.

[0194] Furthermore, the machine learning model trained on the collected data can be refined and tested in several rounds by the host platform 820. Each round can be based on additional data or data that was not previously considered to help expand the knowledge of the machine learning model. In 802, the different training and testing steps (and the data associated with them) can be stored on the blockchain 810 by the host platform 820. Each refinement of the machine learning model (e.g., changes to variables, weights, etc.) can be stored on the blockchain 810. This provides verifiable proof of how the model was trained and what data was used to train the model. Additionally, when the host platform 820 has achieved the final trained model, the resulting model can be stored on the blockchain 810.

[0195] After the model has been trained, it can be deployed to a field environment where predictions / decision-making can be made based on the execution of the finally trained machine learning model. For example, in 804, the machine learning model can be used for condition-based maintenance (CBM) of assets such as aircraft, wind turbines, and healthcare machines. In this example, data feedback from asset 830 can be fed into the machine learning model and used to make event predictions, such as failure events, error codes, etc. The determinations made by the machine learning model by executing it at host platform 820 can be stored on blockchain 810 to provide auditable / verifiable proof. As a non-limiting example, the machine learning model can predict the future failure / failure of a portion of asset 830 and create an alert or notification to replace that portion. The data behind this decision can be stored on blockchain 810 by host platform 820. In one embodiment, the features and / or actions described and / or depicted herein can occur on or relative to blockchain 810.

[0196] New transactions on the blockchain can be aggregated into a new block and added to an existing hash. This hash is then encrypted to create a new hash for the new block. As transactions are encrypted, they are added to the next list of transactions, and so on. The result is a blockchain where each block contains the hashes of all previous blocks. The computers storing these blocks periodically compare their hashes to ensure they are consistent. Any computer that disagrees discards the record that caused the problem. This method is beneficial for ensuring the blockchain's tamper resistance, but it is not perfect.

[0197] One way to play this system is for dishonest users to change their list of favorite transactions while keeping the hash unchanged. This can be done with brute force—in other words, by altering the record, encrypting the result, and checking if the hashes match. If not, it's repeated until a matching hash is found. The security of blockchain is based on the belief that ordinary computers can only perform such brute-force attacks on completely impractical timescales, such as the age of the universe. In contrast, quantum computers are much faster (1000 times faster), and therefore pose a much greater threat.

[0198] Figure 8B An example 850 of a quantum-secure blockchain 852 implementing quantum key distribution (QKD) to prevent quantum computing attacks is shown. In this example, blockchain users can verify each other's identities using QKD. This uses quantum particles such as photons to send information, which cannot be copied by an eavesdropper without destroying them. In this way, senders and receivers can be certain of each other's identities through the blockchain.

[0199] exist Figure 8BIn this example, there are four users: 854, 856, 858, and 860. Each pair of users can share a key 862 (i.e., QKD) between them. Since there are four nodes in this example, there are six pairs of nodes, and therefore six different keys 862 are used, including QKD. AB QKD AC QKD AD QKD BC QKD BD and QKD CD Each pair can create a QKD by sending information using quantum particles such as photons, and an eavesdropper cannot copy a QKD without destroying it. In this way, a pair of users can be certain of each other's identity.

[0200] Blockchain 852 operates based on two processes: (i) the creation of transactions and (ii) the construction of blocks that aggregate new transactions. New transactions can be created similarly to those in traditional blockchain networks. Each transaction can contain information about the sender, receiver, creation time, amount (or value) to be transferred, a list of reference transactions proving the sender has the funds for the operation, etc. This transaction record is then sent to all other nodes, where it is entered into a pool of unconfirmed transactions. Here, the two parties (i.e., a pair of users in 854-860) authenticate the transaction by providing their shared key 862 (QKD). This quantum signature can be appended to each transaction, making it extremely difficult to tamper with. Each node checks its local copy of the entries for blockchain 852 to verify that each transaction has sufficient funds. However, the transaction is not yet confirmed.

[0201] Instead of performing a traditional mining process on blocks, blocks can be created in a decentralized manner using a broadcast protocol. Within a predetermined time period (e.g., seconds, minutes, hours, etc.), the network can apply the broadcast protocol to any unconfirmed transactions, thereby achieving a Byzantine agreement (consensus) regarding the correct version of the transaction. For example, each node can possess a private value (the transaction data for that particular node). In the first round, nodes send their private values ​​to each other. In subsequent rounds, nodes transmit the information they received from other nodes in the previous round. Here, honest nodes are able to create a complete set of transactions within a new block. This new block can be added to blockchain 852. In one embodiment, the features and / or actions described and / or depicted herein may occur on or relative to blockchain 852.

[0202] Figure 9An example system 900 supporting one or more of the exemplary embodiments described and / or depicted herein is illustrated. System 900 includes a computer system / server 902 that can operate with a number of other general-purpose or special-purpose computing system environments or configurations. Examples of well-known computing systems, environments, and / or configurations suitable for use with computer system / server 902 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 that include any of the aforementioned systems or devices.

[0203] Computer system / server 902 can be described in the general context of executable instructions of a computer system, such as program modules executed by the computer system. Typically, program modules can include routines, programs, objects, components, logic, data structures, etc., that perform specific tasks or implement specific abstract data types. Computer system / server 902 can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked via a communication network. In a distributed cloud computing environment, program modules can reside on local and remote computer system storage media, including memory storage devices.

[0204] like Figure 9 As shown, the computer system / server 902 in the cloud computing node 900 is illustrated in the form of a general-purpose computing device. Components of the computer system / server 902 may include, but are not limited to, one or more processors or processing units 904, system memory 906, and buses that couple various system components, including system memory 906, to the processor 904.

[0205] A bus refers to one or more of several types of bus architectures, including memory buses or memory controllers, peripheral buses, accelerated graphics ports, and processor or local buses that use any of the various bus architectures. By way of example and not limitation, these architectures include the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MCA) bus, the Enhanced ISA (EISA) bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0206] Computer system / server 902 typically includes a variety of computer system readable media. Such media can be any available media accessible by computer system / server 902, and it includes volatile and non-volatile media, removable and non-removable media. In one embodiment, system memory 906 implements the flowcharts of other figures. System memory 906 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 910 and / or cache 912. Computer system / server 902 may also include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 914 may be provided for reading from and writing to non-removable, non-volatile magnetic media (not shown and generally referred to as a "hard disk drive"). Although not shown, a disk drive may be provided for reading from and writing to a removable, non-volatile disk (e.g., a "floppy disk"), and an optical disk drive may be provided for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM, or other optical media. In this case, each may be connected to a bus via one or more data media interfaces. As will be further described and illustrated below, memory 906 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of this application.

[0207] As an example and not a limitation, a program / utility 916 having a set (at least one) of program modules 918, along with an operating system, one or more applications, other program modules, and program data, may be stored in memory 906. Each of the operating system, one or more applications, other program modules, and program data, or some combination thereof, may include an implementation of a networking environment. Program modules 918 typically perform the functions and / or methods of various embodiments of the applications described herein.

[0208] As those skilled in the art will understand, aspects of this application can be implemented as a system, method, or computer program product. Therefore, aspects of this application can take the form of a completely hardware embodiment, a completely software embodiment (including firmware, resident software, microcode, etc.), or an embodiment combining software and hardware aspects, which can be collectively referred to herein as a “circuit,” “module,” or “system.” Furthermore, aspects of this application can take the form of a computer program product contained in one or more computer-readable media that include computer-readable program code thereon.

[0209] The computer system / server 902 can also communicate with one or more external devices 920, such as a keyboard, pointing device, display 922, etc.; one or more devices that enable a user to interact with the computer system / server 902; and / or any device that enables the computer system / server 902 to communicate with one or more other computing devices (e.g., a network interface card, modem, etc.). This communication can occur via I / O interface 924. Furthermore, the computer system / server 902 can communicate with one or more networks, such as a local area network (LAN), a general wide area network (WAN), and / or a public network (e.g., the Internet), via network adapter 926. As depicted, network adapter 926 communicates with other components of the computer system / server 902 via a bus. It should be understood that, although not shown, other hardware and / or software components can be used in conjunction with the computer system / server 902. Examples include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archive storage systems.

[0210] Although exemplary embodiments of at least one of the systems, methods, and non-transient computer-readable media are shown in the accompanying drawings and described in the foregoing detailed description, it will be understood that this application is not limited to the disclosed embodiments, but is capable of numerous rearrangements, modifications, and substitutions as set forth and defined in the appended claims. For example, the capabilities of the systems in the various figures may be implemented by one or more of the modules or components described herein or in a distributed architecture, and may include a transmitter, a receiver, or a pair of both. For example, all or part of the functions performed by the various modules may be performed by one or more of these modules. Furthermore, the functions described herein may be performed at various times and may be related to various events, either internal or external to the modules or components. Moreover, information transmitted between the various modules may be transmitted 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. Moreover, messages sent or received by any module may be sent or received directly and / or via one or more other modules.

[0211] Those skilled in the art will understand that the "system" can be implemented as a personal computer, server, console, personal digital assistant (PDA), cellular phone, tablet computing device, smartphone, or any other suitable computing device, or a combination of devices. Presenting the foregoing functionality as being performed by the "system" is not intended to limit the scope of this application in any way, but rather to provide one example of many embodiments. In fact, the methods, systems, and apparatuses disclosed herein can be implemented in a localized and distributed manner consistent with computing technologies.

[0212] It should be noted that some system features described in this specification have been presented as modules to more specifically emphasize their implementation independence. For example, modules can be implemented as hardware circuits comprising custom VLSI circuitry or gate arrays, off-the-shelf semiconductors such as logic chips, transistors, or other discrete components. Modules can also be implemented in programmable hardware devices such as field-programmable gate arrays, programmable array logic, programmable logic devices, graphics processing units, etc.

[0213] Modules can also be implemented, at least in part, as software executed by various types of processors. Identifying units of executable code can, for example, include one or more physical or logical blocks of computer instructions, which can be organized, for example, into objects, procedures, or functions. However, the executable code identifying a module does not need to be physically located together, but can include different instructions stored in different locations that, when logically combined, comprise the module and achieve its intended purpose. Furthermore, modules can be stored on a computer-readable medium, which can be, for example, a hard disk drive, a flash memory device, random access memory (RAM), magnetic tape, or any other such medium for storing data.

[0214] In practice, a module of executable code can be a single instruction or multiple instructions, and can even be distributed across several different code segments, between different programs, and across several memory devices. Similarly, operational data can be identified and represented within a module, and can be embodied in any suitable form and organized within any suitable type of data structure. Operational data can be collected as a single dataset, or it can be distributed across different locations including different storage devices, and can exist at least in part as electronic signals on a system or network.

[0215] It is readily understood that, as generally described and illustrated in the accompanying drawings, the components of this application can 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 application.

[0216] Those skilled in the art will readily understand that the above content can be practiced with steps in a different order and / or with hardware components configured differently from the disclosed configuration. Therefore, although this application has been described based on these preferred embodiments, certain modifications, variations, and alternative constructions will be apparent to those skilled in the art.

[0217] Although preferred embodiments of this application have been described, it should be understood that the described embodiments are merely illustrative, and the scope of this application is limited only by the appended claims when considering its full range of equivalents and modifications (e.g., protocols, hardware devices, software platforms, etc.).

Claims

1. A device for blockchain, comprising: A network interface configured to receive view change messages from multiple subsequent peers, the view change messages requesting view changes from the current primary peer of the blockchain to a new primary peer, wherein each view change message includes the signatures of some of the multiple subsequent peers. as well as The processor is configured to identify that a state change of the blockchain is in progress based on the metadata of a received view change message, and to verify, based on the signatures of peers included in the view change message, that a predetermined threshold number of subsequent peers agree that the state change of the blockchain corresponds to the latest change in the blockchain. The network interface is also configured to send new view messages, including ongoing changes to the blockchain state, to multiple subsequent peers.

2. The apparatus of claim 1, wherein the network interface is configured to send a new view message in response to receiving a view data message from only one of a plurality of subsequent peers.

3. The apparatus of claim 1, wherein the ongoing change of the blockchain state includes the proposed data block.

4. The apparatus of claim 1, wherein the processor is further configured to verify view change messages that have been received from a predetermined threshold number of subsequent peers among a plurality of subsequent peers.

5. The apparatus according to claim 1, wherein, For each view change message, the metadata includes the next view number and the hash change of the blockchain.

6. The apparatus of claim 1, wherein the processor is further configured to receive a view data message from a subsequent peer, the view data message comprising a plurality of signed preparation messages received by the subsequent peer from other peers among a plurality of subsequent peers.

7. The apparatus of claim 6, wherein the processor is configured to verify that an ongoing change in the blockchain state is included in a preparation message containing a predetermined number of signatures stored within a view data message.

8. The apparatus of claim 1, wherein the processor is further configured to identify a blockchain state change currently in progress by the primary peer and generate a view change message including a next view code, a hash of the ongoing blockchain state change, and signatures of a plurality of subsequent peers who have agreed on the ongoing change.

9. The apparatus of claim 8, wherein the processor is further configured to store signatures of other subsequent peers of the blockchain within the viewed change message, the other subsequent peers agreeing on the ongoing change to the state of the blockchain.

10. The apparatus of claim 8, wherein in-progress changes to the blockchain state and signatures from multiple subsequent peers are collected during the preparation phase of the practical Byzantine Fault-Tolerant pBFT consensus.

11. The apparatus of claim 8, wherein the processor is configured to identify an ongoing change in the blockchain state based on a pre-prepared message received from the current master peer.

12. The apparatus according to claim 1, further comprising: The network interface is also configured to receive pre-prepared messages from the primary peer, including suggested data to be added to the blockchain; as well as The processor is also configured to generate a preparation message that includes a hash of the proposed data to be added to the blockchain and the signatures of the consensus peers on the hash of the proposed data, add the hash puzzle of the consensus peers to the preparation message, and transmit the preparation message with the hash puzzle to multiple other consensus peers in the blockchain.

13. The apparatus of claim 12, wherein the processor is further configured to determine, based on a preparation message received from other consensus peers, a predetermined threshold of suggested data to be added to the blockchain, which is agreed upon by the other consensus peers.

14. The apparatus of claim 12, wherein the processor is further configured to generate a commit message including a solution to a hash puzzle added to a preparation message, and to transmit the commit message to the plurality of other consensus peers.

15. The apparatus of claim 14, wherein the submission message does not include the signature of the consensus peer.

16. The apparatus of claim 12, wherein the processor is configured to generate a hash puzzle via a hash of a predefined secret value.

17. The apparatus of claim 12, wherein the processor is further configured to receive a preparation message from the other consensus peers, wherein the received preparation message includes a hash puzzle added by the other respective consensus peers.

18. A method for a principal-peer relationship, comprising: Receive view change messages from multiple subsequent peers, the view change messages requesting view changes from the current primary peer of the blockchain to a new primary peer, wherein each view change message includes the signatures of some of the multiple subsequent peers; Identify that a state change in the blockchain is in progress based on the metadata of the received view change messages; Based on the signature verification of the peer included in the viewed change message, a predetermined threshold number of subsequent peers among multiple subsequent peers agree that the state change of the blockchain corresponds to the most recent change of the blockchain. as well as Send new view messages to multiple subsequent peers, the new view messages including ongoing changes to the blockchain state.

19. The method of claim 18, wherein sending includes sending a new view message in response to receiving a view data message from only one of a plurality of subsequent peers.

20. The method of claim 18, wherein the ongoing change of the blockchain state includes the proposed data block.

Citation Information

Patent Citations

  • Achieving consensus among network nodes in a distributed system

    US20190280879A1