Database malicious peer identification

Through the cooperation of the orderer and peripheral peers in the blockchain network, the block hash value consistency is detected, which solves the problems of single point of failure and low data redundancy of the centralized database, and realizes the identification of malicious behaviors. and prevention, improving the security and reliability of the system.

CN111985003BActive Publication Date: 2024-10-08INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010426725.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-05-24
Filing Date
2020-05-19
Publication Date
2024-10-08
Estimated Expiration
2040-05-19

AI Technical Summary

Technical Problem

Centralized databases have problems such as single points of failure, high network dependence, low data redundancy, and difficulty in data recovery, which make the system prone to crashing in the event of hardware failure or high traffic, and cannot effectively handle the detection of malicious orderer peers. .

Method used

Adopting a blockchain network, through the collaboration of the orderer peers and peripheral peers, the hash value of the block is calculated, the hash value consistency is detected, and if the hash value is inconsistent, the block submission is stopped, thereby identifying and preventing malicious orderers. Behavior of peers to ensure network security and integrity.

Benefits of technology

It achieves effective detection and prevention of malicious sequencers or peripheral peers, improves the security and reliability of the blockchain network, avoids data loss and system crash, and enhances data redundancy and recovery capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111985003B_ABST
    Figure CN111985003B_ABST
Patent Text Reader

Abstract

The present disclosure relates to database malicious peer identification. Exemplary operations may include one or more of the following: receiving, by each of one or more peripheral peers of a blockchain network, a new block from a sorter peer, calculating a hash value of the new block, determining that the calculated hash value is different from hash values ​​from a majority of the peripheral peers, determining that one or more blocks corresponding to the different hash values ​​from the majority of the peripheral peers are different from the new block, and in response, ceasing to submit blocks to the blockchain network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application generally relates to methods and systems for detecting malicious sequencers or peripheral peers, and more particularly, to database malicious peer identification. Background Art

[0002] A centralized database stores and maintains data in a single database located in one location (e.g., a database server). This location is usually a central computer, such as a desktop central processing unit (CPU), a server CPU, or a mainframe computer. Information stored on a centralized database can usually be accessed from multiple different locations. For example, based on a client / server configuration, multiple users or client workstations can work on a centralized database at the same time. Due to its single location, a centralized database is easy to manage, maintain, and control, especially for security. In a centralized database, data redundancy is minimized because the single storage location for all data also means that there is only one master record for a given set of data.

[0003] However, centralized databases have significant drawbacks. For example, centralized databases have a single point of failure. In particular, if fault tolerance is not considered and a hardware failure (e.g., hardware, firmware, and / or software failure) occurs, all data in the database is lost and the work of all users is interrupted. In addition, centralized databases are highly dependent on network connections. As a result, the slower the connection, the longer it takes to access the database each time. Another drawback is that when a centralized database experiences high traffic due to its single location, a bottleneck occurs. In addition, centralized databases provide limited data access because the database only maintains one copy of the data. As a result, multiple devices cannot access the same data at the same time, otherwise serious problems will occur or the risk of overwriting the stored data will occur. In addition, since the database storage system has almost no data redundancy, it is difficult to recover accidentally lost data except by manually restoring it from backup storage. Therefore, a solution to overcome these drawbacks and limitations is needed. Summary of the invention

[0004] An example embodiment provides a system comprising a blockchain network, the blockchain network comprising an orderer peer and one or more of one or more peripheral peers, the orderer peer being configured to create and propagate new blocks, the one or more peripheral peers being coupled to the orderer peer, each peripheral peer being configured to perform one or more of the following: calculating a hash value of the new block, determining that the calculated hash value is different from hash values ​​from a majority of the peripheral peers, determining that one or more blocks corresponding to the different hash values ​​from the majority of the peripheral peers are different from the new block, and in response, ceasing to submit blocks to the blockchain network.

[0005] Yet another example embodiment provides a method comprising one or more of receiving, by each of one or more peripheral peers of a blockchain network, a new block from an orderer peer, calculating a hash value for the new block, determining that the calculated hash value is different from hash values ​​from a majority of the peripheral peers, determining that one or more blocks corresponding to the different hash values ​​from the majority of the peripheral peers are different from the new block, and in response, ceasing to submit blocks to the blockchain network.

[0006] Another example embodiment provides a non-transitory computer-readable medium containing instructions that, when read by a processor, cause the processor to perform one or more of: receiving, by each of one or more peripheral peers of a blockchain network, a new block from an orderer peer, calculating a hash value for the new block, determining that the calculated hash value is different from hash values ​​from a majority of the peripheral peers, determining that one or more blocks corresponding to the different hash values ​​from the majority of the peripheral peers are different from the new block, and in response, ceasing to submit blocks to the blockchain network. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1A According to an exemplary embodiment, a block diagram of a system for processing new blocks is illustrated.

[0008] Figure 1B According to an exemplary embodiment, a block diagram of a system for processing a new sequence of blocks is illustrated.

[0009] Figure 2A According to an example embodiment, an example blockchain architecture configuration is illustrated.

[0010] Figure 2B According to an example embodiment, a blockchain transaction flow is illustrated.

[0011] Figure 3A According to an exemplary embodiment, a permissioned network is illustrated.

[0012] Figure 3B According to an exemplary embodiment, another permission-based network is illustrated.

[0013] Figure 3C According to an exemplary embodiment, an unlicensed network is illustrated.

[0014] Figure 4 According to an exemplary embodiment, a system messaging diagram for performing block integrity checking is illustrated.

[0015] Figure 5A According to an example embodiment, a flow chart illustrating an example method of verifying a new block in a blockchain is illustrated.

[0016] Figure 5BAccording to an example embodiment, a flow chart illustrating an example method of verifying a sequence of blocks in a blockchain is illustrated.

[0017] Figure 5C According to an exemplary embodiment, a flow chart of an exemplary method of preventing vulnerabilities in a blockchain is illustrated.

[0018] Fig. 6A According to an exemplary embodiment, an exemplary system configured to perform one or more operations recited herein is illustrated.

[0019] Figure 6B According to an exemplary embodiment, yet another exemplary system configured to perform one or more operations recited herein is illustrated.

[0020] Figure 6C According to an exemplary embodiment, another exemplary system configured to utilize smart contracts is illustrated.

[0021] Fig.6D According to an exemplary embodiment, another exemplary system configured to utilize a blockchain is illustrated.

[0022] Fig. 7A According to an example embodiment, the process of adding a new block to a distributed ledger is illustrated.

[0023] Figure 7B According to an exemplary embodiment, the contents of a new data block are illustrated.

[0024] Figure 7C According to an exemplary embodiment, a blockchain for digital content is illustrated.

[0025] Fig.7D According to an example embodiment, blocks are illustrated that may represent the structure of various blocks in a blockchain.

[0026] Fig. 8A According to an example embodiment, an example blockchain for storing machine learning (artificial intelligence) data is illustrated.

[0027] Figure 8B According to an example embodiment, an example quantum-secure blockchain is illustrated.

[0028] Fig. 9 An example system is illustrated to support one or more example embodiments. DETAILED DESCRIPTION

[0029] It is readily understood that the various components present may be arranged and designed in a variety of different configurations as described and illustrated in the figures herein. Thus, the following detailed description of embodiments of at least one of the methods, devices, non-transitory computer-readable media, and systems as represented in the accompanying drawings is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments.

[0030] In one or more embodiments, the various features, structures or characteristics currently recorded in this specification may be combined or removed in any appropriate manner. For example, the use of the phrases "illustrative embodiments", "some embodiments" or other similar language throughout this specification refers to that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment. Thus, the appearance of the phrases "illustrative embodiments", "in some embodiments", "in other embodiments" or other similar language throughout this specification does not necessarily refer to the same set of embodiments, and in one or more embodiments, the recorded features, structures or characteristics may be combined or removed in any appropriate manner. In addition, in the accompanying drawings, any connection between elements may allow unidirectional and / or bidirectional communication, even if the connection described is a unidirectional or bidirectional arrow. In addition, any device described in the accompanying drawings may be a different device. For example, if a mobile device is shown sending information, a wired device may also be used to send the information.

[0031] In addition, although the term "message" is used in the description of the embodiment, the application can be applicable to many types of networks and data. In addition, although certain types of connections, messages and signaling are described in the exemplary embodiments, the application is not limited to certain types of connections, messages and signaling.

[0032] Illustrative embodiments provide methods, systems, components, non-transitory computer-readable media, devices, and / or networks that may provide database malicious peer identification.

[0033] In one embodiment, the present application utilizes a decentralized database (such as blockchain) as a distributed storage system, which includes multiple nodes that communicate with each other. The decentralized database includes an immutable data structure that can only be appended, similar to a distributed ledger that can maintain records between mutually distrusting parties. Mutually distrusting parties are referred to as peers or peer nodes in this article. Each peer maintains a copy of the database record, and if a consensus is not reached between the distributed peers, no single peer can modify the database record. For example, peers can execute a consensus protocol to verify blockchain storage transactions, divide storage transactions into blocks, and build hash chains for these blocks. The process sorts storage transactions as needed by considering consistency to form a ledger. In various embodiments, permissioned blockchains and / or permissionless blockchains can be used. In a public or permissionless blockchain, anyone can participate without a specific identity. Public blockchains can involve native (native) cryptocurrencies and use consensus based on various protocols, such as proof of work (PoW). On the other hand, permissioned blockchain databases provide secure interactions between a group of entities that have a common goal but do not fully trust each other, such as businesses exchanging funds, goods, information, etc.

[0034] The present application can utilize a blockchain that operates arbitrary programmable logic that is customized according to a decentralized storage solution, called a "smart contract" or "chain code". In some cases, there may be specialized chain codes for management functions and parameters, which are called system chain codes. The present application can also utilize smart contracts, which are trusted distributed applications that take full advantage of the tamper-proof nature of the blockchain database and the underlying protocol between nodes (called endorsement or endorsement policy). Blockchain transactions associated with the present application can be "endorsed" before being submitted to the blockchain, while unendorsed transactions are ignored. The endorsement policy allows the chain code to specify endorsers for the transaction in the form of a set of peer nodes required for endorsement. When the client sends the transaction to the peer specified in the endorsement policy, the transaction is executed to verify the transaction. After verification, the transaction enters the sorting phase, in which a consensus protocol is used to generate an ordered sequence of endorsed transactions grouped into blocks.

[0035] The present application may utilize nodes as communication entities of a blockchain system. A "node" can perform a logical function in the sense that multiple nodes of different types can run on the same physical server. Nodes are grouped in trust domains and are associated with logical entities that control them in various ways. Nodes may include different types, such as client or submitting client nodes, which submit transaction calls to endorsers (e.g., peers) and broadcast transaction proposals to ordering services (e.g., ordering nodes). Another type of node is a peer node, which can receive transactions submitted by clients, submit transactions, and maintain the state and copy of the ledger of blockchain transactions. Peers can also play the role of endorsers, although this is not required. Ordering service nodes or orderers are nodes that run communication services for all nodes, which implement delivery guarantees, such as broadcasts to each peer node in the system when submitting transactions and modifying the world state of the blockchain, which is another name for the initial blockchain transaction that usually contains control and setup information.

[0036] The present application may utilize a ledger, which is an ordered, tamper-proof record of all state transitions of a blockchain. State transitions may originate from chaincode invocations (i.e., transactions) submitted by participating parties (e.g., client nodes, ordering nodes, endorser nodes, peer nodes, etc.). Each participating party (such as a peer node) may maintain a copy of the ledger. A transaction may result in a set of asset key-value pairs that are submitted to the ledger as one or more operands, such as create, update, delete, etc. The ledger includes a blockchain (also referred to as a chain) for storing immutable ordered records in the form of blocks. The ledger also includes a state database that maintains the current state of the blockchain.

[0037] The present application can utilize a chain as a transaction log, which is composed of blocks as hash links, each block containing a series of N transactions, where N is equal to or greater than 1. The block header includes the hash value of the block's transactions, as well as the hash value of the block header of the previous block. In this way, all transactions on the ledger can be arranged in order and encrypted together. Thus, it is impossible to tamper with the ledger data without breaking the hash link. The hash value of the most recently added blockchain block represents every transaction on the chain before it, making it possible to ensure that all peer nodes are in a consistent and trusted state. The chain can be saved on the peer node file system (i.e., local, attached storage, cloud, etc.), thereby effectively supporting the append-only nature of blockchain workloads.

[0038] The current state of the immutable ledger represents the latest values ​​for all keys contained in the chain's transaction log. Because the current state represents the latest key values ​​known to the channel, it is sometimes called the world state. Chaincode invocations execute against the current state data of the ledger. To make these chaincode invocations efficient, the latest values ​​of the keys can be stored in a state database. The state database can be just an indexed view of the chain's transaction log, so it can be regenerated from the chain at any time. The state database can be automatically restored on peer node startup (or generated when needed) before transactions are accepted.

[0039] Some benefits of the current solution illustrated and described herein include new capabilities to detect malicious orderer peers or outlying peers in permissioned blockchain networks, and batch processing to detect malicious behavior within a set of sequential, continuous blocks.

[0040] The public process is impossible to implement on a traditional database instead of a blockchain because the current process utilizes distributed consensus on new block submissions and a shared ledger to store submitted blocks. Traditional databases lack these processes and structures.

[0041] The present application provides functional improvements to computer functions utilizing blockchain by detecting peers within the blockchain network that may act maliciously and thereby corrupt data or store modified data. Although permissioned blockchain networks are sometimes considered inherently secure, it is still possible for corrupted blocks to be stored in the blockchain during the commit phase. By detecting corrupted or altered blocks, the security and integrity of the network is maintained. No new data is stored in the blocks of the blockchain.

[0042] In a blockchain network, each peer includes a shared ledger that includes an ordered sequence of transactions that are typically grouped into blocks for efficient distribution. In some permissioned blockchain networks, there is a set of peers dedicated to ordering and batching transactions into blocks (hereinafter referred to as "ordering peers" or "orderers"), and distributing the blocks to the rest of the blockchain network's peers (hereinafter referred to as "peripheral peers"). Distribution is accomplished by having peripheral peers pull blocks from ordering peers, having ordering peers send blocks to peripheral peers, by methods involving one of the two methods described above, or by methods involving one of the methods described above, although it may also be accomplished by having peripheral peers send blocks to each other rather than receiving blocks directly from ordering peers.

[0043] In most blockchain networks, transactions sent by blockchain network participants are signed using asymmetric cryptography, such as (but not limited to) RSA or ECDSA signature schemes. Since sorting peers lack private keys, they cannot modify the sent transactions while maintaining the validity of the signature, as this would require considerable computing power.

[0044] The threat model for a permissioned blockchain network can consider malicious sorting peers or malicious peripheral peers. Malicious sorting peers may collude with other sorting peers to provide different blocks to peripheral peers, or even collude with peripheral peers (depending on their threat model) to change their protocol. There is no upper limit on the percentage of malicious sorting peers. If peripheral peers fully cooperate with other peripheral peers and follow the protocol, they can be considered honest. If peripheral peers can run modified versions of the protocol and try to prevent honest peers from discovering that they are not following the protocol executed by honest peers, they can be considered malicious.

[0045] In Hyperledger Fabric v0.6, the architecture is built around a small set of validator peers connected in a full mesh topology that executes a Byzantine consensus protocol (i.e., PBFT), and all peers periodically exchange block hashes through a checkpoint mechanism. Validator peers can use these hashes to securely synchronize their own ledgers if they collect f+1 identical hashes of a given sequence number from other peers that published the corresponding hashes after performing a backward hash chain verification to ensure the integrity of the sequence of blocks obtained from the remote validator peers.

[0046] The assumption in Hyperledger Framework v0.6 is that f is a perfect upper bound on the number of Byzantine validator peers, such that if a validator node receives f+1 certifications of the same hash value for a given sequence of blocks, then it will not reach a forked world state. However, the architecture of Hyperledger Framework v0.6 is fundamentally different from the architecture described in this application, i.e., it is a homogeneous architecture, and thus it is not suitable for use cases where many peers are deployed around a central core of peers that cut blocks. In such a layout, peripheral peers cannot use the mechanisms implemented in Hyperledger Framework v0.6 as a black box, because even if there is an upper bound on the percentage of malicious peripheral peers, the collection of identical block hash values ​​H will not be enough to reach a forked world state. i The f+1 certification is also meaningless, because since the blocks are not cut by peripheral peers, there may be a collection of different block hash values ​​H j ≠H iA chain fork can occur without detection if a different set of f+1 peripheral peers authenticated by the peers. Alternatively, if the peripheral peers use the Hyperledger Architecture v0.6 mechanism, a fork can still occur without early detection. The Hyperledger Architecture v0.6 protocol and implementation do not transitively relay information between peers, but only have point-to-point propagation. It is thus not practical in large-scale deployments, and this application proposes the use of a gossip protocol combined with signed messages. This allows data to be propagated in an efficient and scalable manner, and adds the ability to detect and reveal peripheral peers that vote for two different hash values, thereby inhibiting such behavior.

[0047] The purpose of this application is to detect forking attacks even if all ordering peers are malicious, as long as they do not force outlying peers to adopt different blocks. Although ordering peers cannot change the transactions that will appear in the blocks (because they lack the private keys of the transaction submitters), they can still cause the chain to fork, thereby compromising the integrity of the blockchain, by sending different blocks to different outlying peers. This may intentionally disrupt client applications that read transactions in the shared ledger by causing different clients to see different views of the blockchain data.

[0048] The ability to detect state divergence is a critical and important property for a Crash Fault Tolerant (CFT) ordering service. It can allow alarm events to be published for external monitoring systems. Additionally, a Byzantine Fault Tolerant (BFT) ordering service can mitigate the risk of chain forks, as it may not be possible to guarantee that the number of adversarial ordering service peers grows above a threshold of one third of the total size of the ordering service network.

[0049] The present disclosure introduces a method of detecting a chain fork attempt by a peer of a blockchain network 100 under several assumptions.

[0050] First, blocks created by non-malicious (honest) ordering peers all have a monotonically increasing and continuous sequence. The first block is ordered 0, the next block created is ordered 1, and so on. By not creating blocks in a specific sequence, a malicious ordering node cannot create a chain fork, as it is equivalent to an honest ordering node having a crash and then recovering. Second, ordering peers cryptographically sign the blocks they output to the network, each with an identifier of the node, such as (but not limited to) an x509 certificate. The signature can be verified using the identifier, and the identifier itself can be verified using some identity infrastructure (such as (but not limited to) a certificate authority verified chain starting with the node's identifier and ending with a certificate authority trusted by the verifier node).

[0051] Third, the peripheral peers all use the same cryptographic hash function H.

[0052] Figure 1A According to an exemplary embodiment, a block diagram of a system for processing new blocks is illustrated. Figure 1A , the network 100 includes an orderer peer 104, a peripheral peer 108, other peripheral peers 112, and a shared ledger 128. The network 100 is a permissioned blockchain network, such as a Hyperledger Architecture blockchain network.

[0053] The protocol herein utilizes a threshold of the total number of nodes of the blockchain network of 100, which means that peers are countable and the number of peers is a known number. In a public blockchain network, the number of nodes is never known, and the threshold of the percentage of Byzantine nodes (denoted here as f) does not exist, because a malicious party can add as many nodes as it wants to the blockchain network by generating identities for its nodes, and run more than f nodes itself.

[0054] The orderer peer 104 receives endorsed blockchain transactions from other peers within the blockchain network 100 and aggregates groups of transactions into new blocks 116. Although one orderer peer 104 is illustrated, it should be understood that any number of orderer peers 104 may exist in the blockchain network 100. To simplify the description of the network 100 and to aid in understanding the disclosed processes, one orderer peer 104 is shown. When the orderer peer 104 creates a new block 116, it transmits the new block 116 to the peripheral peers 108, 112 of the blockchain network 100. The peripheral peers 108, 112 are all other peers in the blockchain network 100 that are not the orderer peer 104 and are generally considered blockchain peers.

[0055] In the disclosed process, all peripheral peers 108, 112 of the network 100 operate the disclosed process in parallel. However, the description and process focus on what happens within a single peripheral peer (peripheral peer 108) and how it cooperates with other peripheral peers 112 in the network. It should be understood that the operations discussed with respect to the peripheral peer 108 occur simultaneously in each peripheral peer 112. There may be any number of peripheral peers 108, 112 in the blockchain network 100.

[0056] In response to receiving the new block 116, the peripheral peer 108 calculates a hash value 120 of the new block 116. At the same time, the peripheral peer 108 requests the hash value of the new block 116 from the majority of the peripheral peers 112 in the blockchain network 100. Each of the other peripheral peers 112 does the same. The peripheral peer 108 receives the requested hash values ​​128 from the majority of the other peripheral peers 112, compares the requested hash values ​​128 and the calculated hash values ​​120. If all of the requested hash values ​​128 and the calculated hash values ​​120 are the same, then the new block 116 is valid and the peripheral peer 108 includes the new block as a committed block 136 stored in the shared ledger 132 of the blockchain network 100. If one or more of the requested hash values ​​128 and the calculated hash values ​​120 are different, then it is likely that the sorter peer 104 that created the new block 116 may be malicious.

[0057] The peripheral peer 108 then verifies whether the orderer peer 104 is malicious by requesting the new block from each peripheral peer 112 that provided a request hash value 128 that miscompares the calculated hash value 120. These peripheral peers 112 provide the requested block 124 to the peripheral peers 108, which then compare the requested block 124 with the new block 116 received by the peripheral peers 108. If the requested block 124 is different from the new block 116, then the orderer peer 104 that created the new block 116 is a malicious orderer peer 104.

[0058] Honest peripheral peers 108, 112 (that do not participate in the ordering of transactions) have no incentive to lie to every node about the blocks they receive from the ordering peer 104, because the peripheral peers 108, 112 are interested in having the same shared ledger 132 content, since they do not collude with the ordering peer 104. Additionally, each peer can be required to prove its assertion about the block by sending the block itself, thereby exposing its lies, because the block is signed by the ordering node 104. Thus, in any environment where peripheral peers 108, 112 may lie about the blocks they receive from the ordering peer 104, a separate protocol that requires proof by receiving these blocks from peripheral peers 108, 112 can be run in conjunction with the protocol outlined herein. In the case of malicious peripheral peers 108, 112, they may lie to honest peers and may collude with the ordering peer 104 or other peripheral peers 108, 112 to cause different honest peers to adopt blocks containing different transactions, or blocks with the same transactions but in a different order. It is considered acceptable for malicious peers to adopt different blocks than honest peers, but all honest peers must adopt the same blocks.

[0059] The number of malicious peripheral peers 108, 112 in the blockchain network cannot exceed a certain (known) percentage of the total number of peripheral peers. Specifically, the upper limit of the number of possible malicious peripheral peers 108, 112 in the network is known, denoted here as f. The peripheral peers 108, 112 all share a public number B that is known to everyone in the blockchain network 100. The peers arrange the blocks received from the sorting peer 104 in batches of size B. If a peer does not receive block b i , but received block b j , j>i, then it is guaranteed that b is eventually received from the sorting peer 104 or the peripheral peers 108, 112 i In addition, the peripheral peers 108, 112 all share a common duration T known to all entities in the blockchain network 100 out .

[0060] The data structures of the present application may reside in memory or on disk, or in any type of storage device or combination of storage devices. Each peripheral peer 108, 112 maintains blocks in a sequential and continuous ordered list of blocks starting from 0 and up to the latest block received. The hash value of each block in the list is used as a leaf in the Merkle tree 154, and each time a block is received and verified, the Merkle tree 154 is rebuilt and recalculated in each peripheral peer 108, 112. The peripheral peers 108, 112 continuously inform each other of their latest verified and unverified block sequences. Verified blocks are considered to be blocks that have been stored in the shared ledger 132 and are leaves in the Merkle tree 154, while unverified blocks are not. Since blocks enter the shared ledger 132 in order, if b j is a verified block, then It has also been verified.

[0061] A threshold count (hereinafter t) of other peripheral peers 108, 112 that a peer consults in order to withstand a situation where the ordering peer 104 issues different blocks to different peers, or a malicious peripheral peer 108, 112 (if applicable) does not follow its protocol, so as to cause the honest peers to adopt a different set of blocks. The threshold count t that a peer needs to consult depends on the threat model. For an honest peripheral peer 108, 112, the threshold count t may include at least 50% of the total number of peripheral peers 108, 112 among all peripheral peers 108, 112, which means including the peer itself as at least 50% + 1. For a malicious peripheral peer 108, 112: (Hint: the upper limit of the malicious peer count is denoted as f) = at least 50% of the total number of peripheral peers 108, 112 among all peripheral peers 108, 112 + f, which means including the peer itself as at least 50% + f + 1. Peers need not communicate directly with each other to collect a threshold count of hash values, but may also sign data they wish to publish and propagate the data among peripheral peers 108, 112 using a propagation protocol such as (but not limited to) gossip, broadcast, or the like.

[0062] As mentioned before, peers queue blocks received from the ordering service in batches of size B. If a peer does not receive block b i , but block b was indeed received j , j>i, then it is guaranteed that b is eventually received from the sorting peer 104 or the peripheral peers 108, 112 i It follows that if a peer receives all blocks b in a batch of blocks i·B ,b i·B+1 ,…b (i+1)·B-1 , but did not receive a set of blocks b j ,…b j+k , with the constraint that j+k<(i+1)·B-1, it will eventually get the missing block.

[0063] However, if there is a missing set of consecutive indices, and the last one in the set is (i+1)·B-1, then (obviously) there is no guarantee at all that the peer will receive them, since it is possible that this is the last batch being received, and no new blocks have been created by any ordering peer 104. In this case, then T out Indicates the time limit that the peer will wait before deciding to proceed to step (2) of the protocol.

[0064] The protocol itself is described algorithmically as above:

[0065] 1. Receive B blocks b from the external peer p i ,b i+1 ,…b i+B-1When:

[0066] Consult t peripheral peers (denoted as a set Q of peers) for their unverified block sequences and verified block sequences.

[0067] a. If no verified block sequence b′ is found i ,b′ i+1 ,…b′ i+B-1 , then retrieve the hash values ​​H(b) they have received from t peers. i ),H(b i+1 ),…H(b i+B-1 ), if applicable.

[0068] if Then a fork is detected.

[0069] If no such t hash values ​​have been collected - then return to step (1).

[0070] b. As mentioned above, if there is a block sequence b i ,b i+1 ,…b i+B-1 If a node q∈Q is found, it means that the node has built a Merkle tree containing these blocks at its lowest level (leaf level).

[0071] From q, its leaf is the hash value H(b i ),H(b i+1 ),…H(b i+B-1 )'s Merkle tree root hash value (As mentioned above, q maintains such a Merkle tree, and since r B Depends only on b i ,b i+1 ,…b i+B-1 , so no matter what the ledger height of q is, it will remain the same).

[0072] c. Build a temporary Merkle tree, the leaf of which is b i ,b i+1 ,…b i+B-1 , and its root is r B , compare it with Make a comparison

[0073] i. If The constraints are This means that there is a block b in p that is different from the block in q. j , the constraint is i≤j≤i+B-1, thus - the chain fork is successfully detected.

[0074] ii. Otherwise, consider b i,b i+1 ,…b i+B-1 After verification, submit them to the shared ledger and update the Merkle tree.

[0075] 2. If B blocks are not received from the blockchain network 100 in a timely manner within the time limit T out then:

[0076] a. Let b i ,b i+1 ,…b i+k , subject to the constraint that k < B - 1 is the last block received from the blockchain network 100.

[0077] b. Define the blocks z i+k+1 ,…z i+B-1 as the missing blocks in the last batch and represent their hash values as 0.

[0078] c. Perform the protocol of step (1) for each block, while consulting t peripheral peers for the blocks b i ,b i+1 ,…b i+k ,z i+k+1 ,…z i+B-1 , but when contacting other peers - specify the indices i + k,…i + B - 1 in case the peer q contacted receives new blocks during the query.

[0079] Note: Step 1 can also be performed by sending the Merkle root whose leaves are the hash values of the blocks b′ i ,b′ i+1 ,…b′ i+B-1 , but for simplicity and to easily distinguish between the verified blocks for which the Merkle tree has been constructed and the unverified blocks, the protocol does not use the Merkle tree for step 1a. Additionally, the Merkle tree method can be replaced by the cumulative hash defined in the following way: H(H(b i )||H(b i+1 )…||H(b B+i-1 )) or a similar way.

[0080] When the peripheral peers consult each other for the hash values of their blocks, they can adopt their block hash values or detect chain fork attempts. The blocks can be simulated as values in the peripheral peer input protocol, and the output is either the blocks they propose or an event of a fork attempt.

[0081] The disclosed protocol implementation Consensus can be aborted of the properties.

[0082] Consistent validity teaching: "If the processing decides v, then some processing has proposed v before." Thus, if a peripheral peer adopts a certain block, this means that there are t other peripheral peers that either also proposed the block in the past (the block has been verified) or also proposed the block in this round (the block has not been verified by any peripheral peer before).

[0083] Consistency teaching: "Correct processing does not decide different values." Thus, conversely, assume that there are two peripheral peers p and q such that p adopts a block b p with hash value H i , while q adopts a block b q with hash value H i . Since each peripheral peer consults at least 50% + f of the other peripheral peers, there is an honest peripheral peer r that both p and q have consulted. From this assumption and the protocol, it follows that r tells q that the hash value of its b i is H q , and tells p that the hash value of its b i is H p . Thus, r does not follow the protocol and is thus malicious, which is a contradiction.

[0084] Termination teaching: "Ultimately, all correct processing either decides or aborts." It can be easily derived from the protocol that for each block that a peripheral peer consults with other peers, it is either only told the hash value it calculated for the block itself or is told a different hash value, and then it terminates the protocol because a chain split attempt is detected.

[0085] α - abortability teaching: "There exists an α < 1 such that for any failure mode in which most processing is correct, the probability that there is some processing that aborts abnormally during operation due to this failure mode is at most α." Denote the number of peripheral peers as n and the number of malicious peripheral peers as f, such that 2f < n. Let p be a peripheral peer. For simplicity of calculation, assume that it consults exactly (rather than at least) other peripheral peers about the blocks it has. The probability of only selecting honest peripheral peers is: And since each peripheral peer makes the selection independently, the probability that all honest peripheral peers do not select any malicious peripheral peers for a given block batch is (p honest ) n-f , which means that the probability α that some processing aborts abnormally during operation is at most: α = 1 - (p honest ) n-f .

[0086] Figure 1B According to an exemplary embodiment, a block diagram of a system for processing a new block sequence is illustrated. See Figure 1B , the network 150 includes reference Figure 1A The same peers 104, 108, 112 and shared ledger 132 are illustrated, but the system 150 is shown in which a sequence of blocks 170 is processed rather than a single block 116. A sequence of blocks 170 is a group of two or more consecutive blocks.

[0087] In order to make the protocol more efficient, network bandwidth should be conserved and the amount of data transferred should preferably be minimized. To this end, blocks are arranged into batches of some globally known batch size B, and for each such batch of blocks or blocks of a sequence of blocks 170, a Merkle tree 154 is created, where the leaf nodes of the Merkle tree 154 are the block hash values ​​of the batch. In order for two peripheral peers 108, 112 to compare all hash values ​​of the blocks in the batch, only the root node hash value 158 of the Merkle tree 154 needs to be compared. Assuming that the hash function of the Merkle tree is collision-resistant, all block hash values ​​of the batch are the same if and only if the Merkle tree root node hash values ​​158 possessed by two peripheral peers 108, 112 are equal. This saves network bandwidth and is similar to Figure 1A It is more efficient to compare one block at a time as shown in , because the same Merkle tree root node hash value 158 can be sent to all peripheral peers 108 , 112 in the blockchain network 150 .

[0088] However, there is an edge case that needs to be addressed: since the blockchain adds blocks one by one rather than in batches, too much time (here represented as T) may have passed. out ), and the blockchain network 150 may still not have enough blocks to fill a batch of B blocks. In this case, the peripheral peers 118, 112 simply fill the remaining slots in the batch with zero hash values, calculate the Merkle tree root node hash value 158, and send it to the peers along with the index of zero instead of the actual block hash value.

[0089] Each peripheral peer 118, 112 includes a Merkle tree 154. The Merkle tree 154 includes leaf nodes that each store a hash value of a block. The Merkle tree 154 has a root node that stores a root node hash value 158 of the entire Merkle tree 154. Thus, by comparing the root node hash values ​​158, the peripheral peers 118, 112 can determine that two or more Merkle trees 154 are the same.

[0090] If the Merkle tree 154 is built on hashes of validated (committed) blocks, then when unvalidated blocks are received - their hashes can be sent as before and the peripheral peers 108, 112 can be consulted. Otherwise, if the Merkle tree 154 is built on hashes of blocks without considering their validity, then when unvalidated blocks are received, the Merkle tree 154 needs to be constantly updated along with the Merkle tree 154. The peer also sends the range of consecutive prefixes of blocks that are non-zero (in order to let other peripheral peers 108, 112 understand which leaves correspond to blocks that were not included in the Merkle tree 154 construction).

[0091] In response to receiving the block sequence 170, the peripheral peer 108 adds the block sequence 170 to its own Merkle tree 154 by calculating the hash values ​​of each block of the block sequence 170 and storing the calculated hash values ​​to the leaf nodes of its own Merkle tree 154. At the same time, the peripheral peer 108 requests the root node hash value 158 of their own Merkle tree 154 from the majority of the peripheral peers 112 in the blockchain network 100. Recall that each peripheral peer 108, 112 performs these steps in parallel, including updating its own Merkle tree 154 with the hash value of the block sequence 170. The peripheral peer 108 receives the requested root node hash value 162 from most other peripheral peers 112 and compares the requested root node hash value 128 with its own root node hash value 158. If all of the requested root node hash values ​​162 are the same as the root node hash value 158 of the peripheral peer 108, then the block sequence 170 is valid and the peripheral peer 108 includes the block sequence 170 as a committed block 136 stored in the shared ledger 132 of the blockchain network 100. If one or more of the requested root node hash values ​​162 are different from the root node hash value 158 of the peripheral peer 108, then it is likely that the orderer peer 104 that created the block sequence 170 may be malicious.

[0092] The peripheral peer 108 then verifies whether the orderer peer 104 is malicious by requesting a block sequence from each peripheral peer 112 that provided a requested root node hash value 162 that does not match the root node hash value 158 of the peripheral peer 108. These peripheral peers 112 provide the requested block sequence 166 to the peripheral peer 108, which then compares the requested block sequence 166 to the block sequence 170 received by the peripheral peer 108. If the requested block sequence 166 is different from the block sequence 170, then the orderer peer 104 that created the block sequence 170 is a malicious orderer peer 104.

[0093] Figure 2AAccording to an exemplary embodiment, a blockchain architecture configuration 200 is illustrated. Figure 2A , the blockchain architecture 200 may include certain blockchain elements, such as a set of blockchain nodes 202. The blockchain nodes 202 may include one or more nodes 204-210 (only four nodes are described by way of example). These nodes participate in many activities, such as blockchain transaction addition and verification processing (consensus). One or more of the blockchain nodes 204-210 may endorse transactions based on endorsement policies and may provide sorting services for all blockchain nodes in the architecture 200. The blockchain nodes may initiate blockchain authentication and attempt to write to the blockchain immutable ledger stored in the blockchain layer 216, a copy of which may also be stored on the supporting physical infrastructure 214. The blockchain configuration may include one or more applications 224, which may be connected to an application programming interface (API) 222 to access and execute stored program / application code 220 (e.g., chain code, smart contracts, etc.), which may be created in accordance with the customized configuration sought by the participants, may maintain their own state, control their own assets, and receive external information. This can be deployed as a transaction and installed on all blockchain nodes 204-210 by appending it to the distributed ledger.

[0094] The blockchain foundation or platform 212 may include various layers of blockchain data, services (e.g., cryptographic trust services, virtual execution environments, etc.), and supporting physical computer infrastructure that may be used to receive and store new transactions and provide access to auditors who are attempting to access data entries. The blockchain layer 216 may expose interfaces that provide access to the virtual execution environment required to process program code and engage the physical infrastructure 214. Cryptographic trust services 218 may be used to verify transactions such as asset exchange transactions and keep information private.

[0095] Figure 2AThe blockchain architecture configuration of can process and execute program / application code 220 through one or more interfaces exposed by the blockchain platform 212 and services provided. Code 220 can control blockchain assets. For example, code 220 can store and transmit data, can be executed by nodes 204-210 in the form of smart contracts and associated chain codes with conditions or other code elements affected by their execution. As a non-limiting example, smart contracts can be created to perform reminders, updates and / or other notifications affected by changes, updates, etc. The smart contracts themselves can be used to identify rules associated with authorization and access requirements, and the use of the ledger. For example, information 226 can include new blocks or new sequences of blocks from a sorter peer, which can be processed by one or more processing entities (e.g., virtual machines) included in the blockchain layer 216. Results 228 can include requests for hash values ​​and blocks from other peripheral peers for comparison to detect malicious behavior. Physical infrastructure 214 can be used to retrieve any data or information recorded in this document.

[0096] Smart contracts can be created through 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 through a blockchain (e.g., a distributed network of blockchain peers). A transaction is the execution of smart contract code, which can be performed in response to the satisfaction of a condition associated with the smart contract. The execution of a smart contract can trigger trusted modifications to the state of a digital blockchain ledger. Modifications to the blockchain ledger caused by the execution of a smart contract can be automatically replicated throughout the distributed network of blockchain peers through one or more consensus protocols.

[0097] Smart contracts can write data to the blockchain in the format of key-value pairs. In addition, smart contract code can read values ​​stored in the blockchain and use them in application operations. Smart contract code can write the output of various logical operations to the blockchain. The code can be used to create temporary data structures in a virtual machine or other computing platform. The data written to the blockchain can be public and / or can be encrypted to maintain privacy. Temporary data used / generated by smart contracts is saved in memory by the provided execution environment and then deleted once the data required by the blockchain is identified.

[0098] Chaincode may include a code interpretation of a smart contract, with additional features. As described herein, chaincode may be a program code deployed on a computing network where it is executed and validated by chain validators together in a consensus process. The chaincode receives a hash value and retrieves a hash value associated with a data template created by utilizing a pre-saved feature extractor from the blockchain. If the hash value of the hashed identifier matches the hash value created from the saved identifier template data, the chaincode sends the authorization key to the requesting service. The chaincode may be written to the blockchain data associated with encryption details.

[0099] Figure 2B According to an exemplary embodiment, an example of a blockchain transaction flow 250 between nodes of a blockchain is illustrated. Figure 2B , the transaction flow may include a transaction proposal 291 sent by the application client node 260 to the endorsing peer node 281. The endorsing peer 281 may verify the client signature and execute the chaincode function to initiate the transaction. The output may include the chaincode result, the set of key / value versions read in the chaincode (read set), and the set of key / values ​​written in the chaincode (write set). If approved, the proposal response 292 is sent back to the client 260 along with the endorsement signature. The client 260 assembles the endorsement into the transaction payload 293 and broadcasts the transaction payload 293 to the sorting service node 284. The sorting service node 284 then passes the sorted transaction as a block to all peers 281-283 on the channel. Each peer 281-283 may validate the transaction before submitting it to the blockchain. For example, the peer may check the endorsement policy to ensure that the correct assignment of the specified peer has signed the result and authenticated the signature against the transaction payload 293.

[0100] See again Figure 2B , the client node 260 initiates a transaction 291 by constructing a request and sending it to the peer node 281 as an endorser. The client 260 may include an application that makes full use of a supported software development kit (SDK) that utilizes the available APIs to generate a transaction proposal. The proposal is a request to call a chaincode function so that data can be read and / or written to the ledger (i.e., write a new key-value pair for an asset). The SDK can act as a shim to package the transaction proposal into a format of the appropriate architecture (e.g., protocol buffers via remote procedure calls (RPCs)) and obtain the client's cryptographic credentials to generate a unique signature for the transaction proposal.

[0101] In response, the endorsing peer node 281 can verify that: (a) the transaction proposal is well-formed, (b) the transaction has not been submitted in the past (replay-attack protection), (c) the signature is valid, and (d) the submitter (in this case, client 260) is properly authorized to perform the proposed operation on the channel. The endorsing peer node 281 can input the transaction proposal as the actual parameters of the invoked chaincode function. The chaincode is then executed against the current state database to produce a transaction result including a response value, a read collection, and a write collection. However, no updates are made to the ledger at this time. At 292, the set of values, along with the signature of the endorsing peer node 281, is transmitted back to the SDK of the client 260 as a proposal response 292, which parses the payload for use by the application.

[0102] In response, the client 260 application checks / verifies the endorsed peer signatures and compares the proposal responses to determine if the proposal responses are identical. If the chaincode is merely querying the ledger, the application will check the query response and will generally not submit the transaction to the ordering node service 284. If the client application intends to submit the transaction to the ordering node service 284 to update the ledger, the application determines whether the specified endorsement policy has been satisfied (i.e., whether all peer nodes required for the transaction have endorsed the transaction) before submitting. Here, the client may include only one of the multiple parties to the transaction. In this case, each client may have their own endorsement node, and each endorsement node is required to endorse the transaction. The architecture is such that even if the application chooses not to check the response, or otherwise forwards an unendorsed transaction, the endorsement policy will still be enforced by the peers and maintained during the submission verification phase.

[0103] After a successful check, at step 293, client 260 assembles the endorsement into a transaction and broadcasts the transaction proposal and response to ordering node 284 within a transaction message. The transaction may contain read / write sets, endorsement peer signatures, and channel IDs. Endorsing node 284 does not need to examine the entire contents of a transaction in order to perform its operations, instead, ordering node 284 can simply receive transactions from all channels in the network, sort the transactions chronologically by channel, and create blocks of transactions per channel.

[0104] The block of transactions is passed from the ordering node 284 to all peer nodes 281-283 on the channel. The transactions 294 within the block are validated to ensure that any endorsement policies are satisfied and that there have been no changes to the ledger state for the read set variables since the read set was generated by the transaction execution. The transactions in the block are marked as valid or invalid. In addition, at step 295, each peer node 281-283 appends the block to the chain for the channel, and for each valid transaction, the write set is committed to the current state database. Events are emitted to notify the client application that the transaction (call) has been immutably appended to the chain, and whether the transaction is validated or invalid.

[0105] Figure 3A The diagram illustrates an example of a permissioned blockchain network 300 featuring a distributed decentralized peer-to-peer architecture. In this example, a blockchain user 302 can initiate a transaction to a permissioned blockchain 304. In this example, the transaction can be a deployment, call, or query, and can be issued by a client application that leverages the SDK, directly through the API, etc. The network can provide access to regulators 306, such as auditors. The blockchain network operator 308 manages member permissions, such as registering regulators 306 as "auditors" and blockchain users 302 as "clients." Auditors can be limited to querying the ledger, while clients can be authorized to deploy, call, and query certain types of chaincodes.

[0106] Blockchain developers 310 can write chaincodes and client applications. Blockchain developers 310 can deploy chaincodes directly to the network through interfaces. To include credentials from traditional data sources 312 in chaincodes, developers 310 can use out-of-band connections to access data. In this example, blockchain user 302 connects to a permissioned blockchain 304 through peer node 314. Before proceeding with any transactions, peer node 314 retrieves the user's enrollment and transaction certificates from a certification authority 316 that manages the user's roles and permissions. In some cases, blockchain users must possess these digital certificates in order to conduct transactions on the permissioned blockchain 304. At the same time, users attempting to utilize chaincodes may be required to verify their credentials at the traditional data source 312. To confirm the user's authorization, the chaincode can use an out-of-band connection to the data through a traditional processing platform 318.

[0107] Figure 3BAnother example of a permissioned blockchain network 320 featuring a distributed decentralized peer-to-peer architecture is illustrated. In this example, a blockchain user 322 can submit transactions to a permissioned blockchain 324. In this example, the transaction can be a deployment, call, or query, and can be issued through a client application that leverages the SDK, directly through the API, etc. The network can provide access to regulators 326, such as auditors. The blockchain network operator 328 manages member permissions, such as registering regulators 326 as "auditors" and blockchain users 322 as "clients." Auditors can be limited to querying the ledger, while clients can be authorized to deploy, call, and query certain types of chaincodes.

[0108] Blockchain developers 330 write chaincodes and client applications. Blockchain developers 330 can deploy chaincodes directly to the network through an interface. To include credentials from traditional data sources 332 in chaincode, developers 330 can use out-of-band connections to access data. In this example, blockchain user 322 connects to the network through peer node 334. Before proceeding with any transactions, peer node 334 retrieves the user's registration and transaction certificates from certification authority 336. In some cases, blockchain users must have these digital certificates in order to conduct transactions on the permissioned blockchain 324. At the same time, users attempting to utilize chaincodes may be required to verify their credentials at traditional data sources 332. To confirm the user's authorization, the chaincode can use an out-of-band connection to the data through a traditional processing platform 338.

[0109] In some embodiments, the blockchain herein may be a permissionless blockchain. In contrast to permissioned blockchains, which 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 transactions, thereby adding entries to the ledger. In addition, all parties can choose to run nodes on the system and adopt the protocol to help verify transactions.

[0110] Figure 3CThe diagram illustrates the process 350 of a transaction being processed by a permissionless blockchain 352 that includes a plurality of nodes 354. A sender 356 wishes to send a payment or some other form of value (e.g., a deed, medical record, contract, good, service, or any other asset that can be encapsulated in a digital record) to a receiver 358 via the permissionless blockchain 352. In one embodiment, both the sender device 356 and the receiver device 358 may have a digital wallet (associated with the blockchain 352) that provides user interface controls and display of transaction parameters. In response, the transaction is broadcast to the nodes 354 via the blockchain 352. Depending on the network parameters of the blockchain 352, the nodes verify 360 the transaction based on rules established by the creator of the permissionless blockchain 352 (which may be pre-defined or dynamically assigned). For example, this may include verifying the identities of the parties involved, etc. The transaction may be verified immediately, or the transaction may be placed in a queue with other transactions, and the nodes 354 determine whether the transaction is valid based on a set of network rules.

[0111] At construction 362, valid transactions are formed into blocks and sealed with locks (hash values). This process can be performed by a node among nodes 354. The node can use additional software specifically for creating blocks for the non-permissioned blockchain 352. Each block can be identified by a hash value (e.g., a 256-bit number, etc.) created using an algorithm agreed upon by the network. Each block can include a block header, a pointer or reference to the hash value of the block header of the previous block in the chain, and a set of valid transactions. The reference to the hash value of the previous block is associated with the creation of a secure independent chain of blocks.

[0112] Before a block can be added to the blockchain, it must be validated. Validation for a permissionless blockchain 352 may include proof of work (PoW), which is the solution to a puzzle derived from the block header. Figure 3C As shown in the example of , another process for validating blocks is proof of stake. Unlike proof of work, where the algorithm rewards the party that solves the mathematical problem, with proof of stake, the creator of a new block is selected in a deterministic manner, depending on the creator's wealth, also defined as "stake". Subsequently, the selected / chosen nodes perform similar proofs.

[0113] With respect to block 364, the node attempts to solve the block by incrementally changing one variable until the solution satisfies the goal of the entire network. This creates a PoW, thereby ensuring the correct answer. In other words, a possible solution must prove that computing resources are exhausted in solving the problem. In some types of permissionless blockchains, parties can receive valuable rewards (e.g., coins, etc.) for correctly mining a block.

[0114] Here, the PoW process, as well as the chaining of blocks, makes it extremely difficult to modify the blockchain, because in order for a modification of one block to be accepted, an attacker must modify all subsequent blocks. In addition, as new blocks are mined, the difficulty of modifying blocks increases, and the number of subsequent blocks also increases. In terms of distribution 366, successfully verified blocks are distributed through the non-permissioned blockchain 352, and all nodes 354 add blocks to the main chain, which is an auditable ledger of the non-permissioned blockchain 352. In addition, the value in the transaction submitted by the sender 356 is deposited or otherwise transferred to the digital wallet of the recipient device 358.

[0115] Figure 4 According to an exemplary embodiment, a system messaging diagram 400 for performing a block integrity check is illustrated. Figure 4 , system diagram 400 includes sequencer peer 410 , peripheral peer 420 , and other peripheral peers 430 .

[0116] The sorter peer 410 creates a new block (415) and distributes the new block 416 to the peripheral peers 420 and other peripheral peers 430. The peripheral peer 420 calculates a hash value 425A for the new block, which is performed in parallel with the other peripheral peers 430 calculating the hash value 425N of the new block. The peripheral peer 420 transmits a request 426 to the other peripheral peers 430 to provide the hash value of the new block 416. Figure 1A As described, the other peripheral peers 430 perform the same processes in parallel. Thus, the same processes performed by the other peripheral peers 430 are indicated by the suffix "N", while those performed by the peripheral peer 420 are indicated by the suffix "A". Both the request hash value 426 and the requested hash value 427 are indicated by double-headed arrows to additionally indicate this parallelism. However, only the blocks executed by the peripheral peer 420 are discussed in detail at this time. The other peripheral peers 430 constitute the majority of the peripheral peers in the network.

[0117] In response to receiving the request 426, each of the other peripheral peers 430 provides the requested hash value 427 to the peripheral peer 420. The peripheral peer 420 compares the calculated hash value and the requested hash value (435A) and determines whether the hash values ​​of all requests are the same as the calculated hash value (440A). If the hash values ​​of all requests are the same as the calculated hash value (440A), then the peripheral peer 420 submits the new block to the blockchain network (445A). Thereafter, the peripheral peer 420 determines that the hash values ​​of all requests are not the same as the calculated hash value (440A) (i.e., a mismatch occurs) (450A). In this case, the peripheral peer 420 stops submitting new blocks to the blockchain network (455A).

[0118] Figure 5A According to an exemplary embodiment, a flowchart 500 is illustrated of an exemplary method for verifying a new block in a blockchain. Figure 5A , method 500 may include one or more of the following steps.

[0119] At block 504, the orderer peer creates a new block and distributes the new block to peers of the blockchain network.

[0120] At block 508, peripheral peers of the blockchain network calculate a hash value for the new block.

[0121] At block 512, each peripheral peer obtains a hash value of the new block from a majority of peripheral peers of the same blockchain network.

[0122] At block 516, each peripheral peer compares the computed hash value of the new block with the hash values ​​obtained from the majority of peripheral peers.

[0123] At block 520, if any of the hash values ​​do not match, then each peripheral peer that observes the mismatch obtains the blocks corresponding to the non-matching hash values ​​from those peripheral peers that supplied the non-matching hash values.

[0124] At block 524, if any of the blocks obtained do not match the new block, the outlying peer stops submitting blocks. This means that a malicious sorter peer has created a bad block.

[0125] Figure 5B According to an exemplary embodiment, a flowchart 530 is illustrated of an exemplary method for verifying a sequence of blocks in a blockchain. Figure 5B , method 530 includes one or more of the following steps.

[0126] At block 534, the orderer peer creates a sequence of blocks and distributes the new sequence of blocks to peers of the blockchain network.

[0127] At block 538, peripheral peers of the blockchain network calculate hash values ​​for the new sequence of blocks.

[0128] At block 542, each peripheral peer adds the calculated hash value to its own Merkle tree, where each leaf node of the Merkle tree stores a hash value of a different block.

[0129] At block 546, each peripheral peer requests a Merkle root node hash value from most other peripheral peers of the blockchain network. Each peripheral peer compares its own Merkle root node hash value with the Merkle root node hash values ​​it received from the other peripheral nodes to which the request was sent.

[0130] At block 550, if any of the root node hash values ​​do not match, then each outlying peer that observed the mismatch obtains the sequence of blocks corresponding to the unmatched root node hash values ​​from those outlying peers that supplied the unmatched root node hash values.

[0131] At block 554, if any obtained block sequence does not match the new block sequence, then the outlying peer stops submitting blocks. This means that a malicious sorter peer has created a bad block sequence.

[0132] Figure 5C According to an exemplary embodiment, a flowchart 560 is illustrated of an exemplary method for preventing vulnerabilities in a blockchain. Figure 5C , method 560 may include one or more of the following steps.

[0133] At block 564, a cross-link transaction is submitted. For example, a computing device associated with a party or user of a first and second blockchain submits a first cross-link transaction to be added to the first blockchain and submits a second corresponding cross-link transaction to be added to the second blockchain. For example, the first cross-link transaction may be submitted to a node associated with blockchain A to be added to blockchain A, and the second cross-link transaction may be provided to a node associated with blockchain B to be added to blockchain B. In some aspects, for example, when the user anticipates that one of blockchains A and B may become silent in the future, the user may submit the corresponding cross-link transactions. In some aspects, for example, the corresponding cross-link transactions may be submitted simultaneously. In some aspects, for example, the first and second cross-link transactions may be submitted to the first and second blockchains at approximately the same time, such as within seconds, minutes, or hours of each other. In some aspects, one of the cross-link transactions may be submitted first to the blockchain with a higher block addition rate, and then the other cross-link transaction may be submitted to the blockchain with a lower block addition rate. For example, the busiest blockchain may receive submissions of cross-link transactions first, followed by less busy blockchains receiving submissions of cross-link transactions. In some aspects, for example, once a cross-link transaction is confirmed to be present in a new block on the busiest blockchain, the corresponding cross-link transaction can be submitted to the less busy blockchain. In some aspects, for example, this can be reversed, and the cross-link transaction can be submitted first to the less busy blockchain and then to the busiest blockchain.

[0134] At block 568, the first and second blockchains are queried. A computing device of a user, such as the same user of blockchains A and / or B or another user, may query a first blockchain, such as blockchain A, regarding a first cross-link transaction. For example, the user may query blockchain A in response to blockchain B entering a quiet period. For example, the user may initially determine that blockchain B has entered a quiet period and may know or recognize that blockchains A and B have been cross-linked via a cross-link transaction. For example, by querying blockchain B to see if there are any past cross-link transactions and identifying blockchain A as a blockchain that has a corresponding cross-link transaction for a cross-link transaction found in blockchain B, the user may determine that blockchains A and B have been cross-linked. The computing device of the user may identify a second blockchain, such as blockchain B, based on the queried first cross-link transaction, such as by viewing an ID ( Figure 4 ). The computing device of the user may query the second blockchain for the corresponding second cross-link transaction based on the identification of the second blockchain based on the first cross-link transaction.

[0135] At block 572, the cross-linked transactions are compared. If the second cross-linked transaction exists in the second blockchain, the second cross-linked transaction and the first cross-linked transaction may be compared to determine whether the second cross-linked transaction corresponds to the first cross-linked transaction. For example, the transaction digest may be accessed or decoded using the public key of the user who submitted the cross-linked transaction. If the transaction digest is decoded using the same public key, then the cross-linked transaction may be verified because it has been confirmed that the same user submitted both cross-linked transactions.

[0136] At block 576, a check is performed to determine whether the second blockchain should be invalidated. The computing device of the user may determine whether the corresponding second cross-link transaction exists based on the result of the query. If the second cross-link transaction does not exist in the second blockchain, then at least a portion of the second blockchain may be invalidated. For example, the absence of the second cross-link transaction may be an indication that at least a portion of the second blockchain has been modified or tampered with. In some aspects, the user may utilize previous corresponding cross-link transactions of the first and second blockchains to validate at least a portion of the blockchains. For example, if blockchain B is missing a cross-link transaction, then the user may instead attempt to validate at least a portion of blockchain B that ends at the corresponding cross-link transaction.

[0137] At block 580, the second blockchain is validated. If, based on the comparison, it is determined that the second cross-linked transaction corresponds to the first cross-linked transaction, then the second blockchain may be validated. Alternatively, if it is determined that the second cross-linked transaction does not correspond to the first cross-linked transaction, then the second blockchain may be invalidated. For example, if the public key does not decode one or both of the transaction digests, then the user will know that at least one of the cross-linked transactions was not submitted by the same user, and thus the second cross-linked transaction is invalid as evidence of security and integrity on the second blockchain, thereby invalidating at least a portion of the second blockchain.

[0138] Fig. 6A According to an exemplary embodiment, an exemplary system 600 is illustrated that includes a physical infrastructure 610 configured to perform various operations. Fig. 6A , the physical infrastructure 610 includes a module 612 and a module 614. The module 614 includes a blockchain 620 and a smart contract 630 (which may reside on the blockchain 620), and the smart contract 630 may perform any operation step 608 (in the module 612) included in any exemplary embodiment. The step / operation 608 may include one or more of the illustrated or described embodiments, and may represent output or written information written to or read from one or more smart contracts 630 and / or blockchain 620. The physical infrastructure 610, the module 612, and the module 614 may include one or more computers, servers, processors, memories, and / or wireless communication devices. In addition, the module 612 and the module 614 may be the same module.

[0139] Figure 6B According to an exemplary embodiment, another exemplary system 640 configured to perform various operations is illustrated. Figure 6B , system 640 includes module 612 and module 614. Module 614 includes blockchain 620 and smart contract 630 (which may reside on blockchain 620), and smart contract 630 may perform any operation step 608 (in module 612) included in any exemplary embodiment. Step / operation 608 may include one or more of the illustrated or described embodiments, and may represent output or written information written to or read from one or more smart contracts 630 and / or blockchain 620. Physical infrastructure 610, module 612, and module 614 may include one or more computers, servers, processors, memories, and / or wireless communication devices. In addition, module 612 and module 614 may be the same module.

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

[0141] Fig.6D According to an exemplary embodiment, a system 660 including a blockchain is illustrated. Fig.6D In the example of , an application programming interface (API) gateway 662 provides a public interface for accessing blockchain logic (e.g., smart contracts 630 or chaincode) and data (e.g., distributed ledger, etc.). In this example, API gateway 662 is a public interface for conducting transactions (calls, queries, etc.) on the blockchain by connecting one or more entities 652 and 656 to blockchain peers (i.e., server 654). Here, server 654 is a blockchain network peer component that maintains a copy of the world state and distributed ledger, allowing clients 652 and 656 to query data about the world state and submit transactions to the blockchain network, where, depending on the smart contract 630 and the endorsement policy, the endorsing peer will run the smart contract 630.

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

[0143] The storage medium of the example can be coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. In an alternative, the storage medium can be an integral part of the processor. The processor and the storage medium can exist in an application specific integrated circuit ("ASIC"). In an alternative, the processor and the storage medium can exist as discrete components.

[0144] Fig. 7AAccording to an exemplary embodiment, a process 700 of adding a new block to a distributed ledger 720 is illustrated. Figure 7B According to an exemplary embodiment, the content of the new data block structure 730 of the blockchain is illustrated. Fig. 7A , a client (not shown) can submit a transaction to blockchain nodes 711, 712, and / or 713. A client can be an instruction to formulate an activity on blockchain 720 received from any source. For example, a client can be an application acting on behalf of a device, person, or entity to propose a transaction for a 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. There may be different types of blockchain nodes / peers in the blockchain network, including endorsement peers that simulate and endorse transactions proposed by clients, and submission peers that verify endorsements, verify transactions, and submit transactions to the distributed ledger 720. In this example, blockchain nodes 711, 712, and 713 can act as endorser nodes and / or submitter nodes.

[0145] The distributed ledger 720 includes a blockchain that stores immutable ordered records in blocks, and a state database 724 (current world state) that maintains the current state of the blockchain 722. There can be one distributed ledger 720 per channel, and each peer maintains their own copy of the distributed ledger 720 for each channel they are a member of. The blockchain 722 is a transaction log composed of hash-linked blocks, where each block contains a sequence of N transactions. A block may include, for example, Figure 7B The various components shown in . By adding the hash value of the previous block's block header to the current block's block header, a link to the block can be generated ( Fig. 7A ). In this way, all transactions on blockchain 722 are ordered and cryptographically linked together to prevent tampering of blockchain data without breaking the hash link. In addition, due to the link, the latest block in blockchain 722 represents every transaction that came before it. Blockchain 722 can be stored on a peer file system (local or attached storage device) that supports append-only blockchain workloads.

[0146] The current state of the blockchain 722 and distributed ledger 722 may be maintained in a state database 724. Here, the current state data represents the latest values ​​of all keys ever contained in the chain transaction log of the blockchain 722. Chaincode invocations execute transactions against the current state in the state database 724. To make these chaincode transactions extremely efficient, the latest values ​​of all keys are stored in the state database 724. The state database 724 may contain an indexed view into the transaction log of the blockchain 722 so that it can be regenerated from the chain at any time. The state database 724 may be automatically restored at peer startup (or generated when needed) before a transaction is accepted.

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

[0148] The ordering service 710 accepts endorsed transactions, orders them into blocks, and delivers blocks to submitting peers. For example, the ordering service 710 can initiate a new block when a transaction threshold has been reached, a timer has expired, or other conditions. Fig. 7A In the example of , blockchain node 712 is a submitting peer that has received a new data block 730 for storage on blockchain 720. The first block in a blockchain may be referred to as a genesis block, which includes information about the blockchain, its members, the data stored therein, and the like.

[0149] The sorting service 710 may consist of a group of sorters. The sorting service 710 does not process transactions, smart contracts, or maintain a shared ledger. Instead, the sorting service 710 may accept endorsed transactions and specify the order in which these transactions are submitted to the distributed ledger 720. The architecture of the blockchain network may be designed so that the specific implementation of 'sorting' (e.g., Solo, Kafka, BET, etc.) becomes a pluggable component.

[0150] Transactions are written to the distributed ledger 720 in a consistent order. The order of transactions is established to ensure that updates to the state database 724 are valid when they are submitted to the network. Unlike cryptocurrency blockchain systems where ordering is performed by solving cryptographic puzzles, in this example, the parties to the distributed ledger 720 can choose the ordering mechanism that best suits the network.

[0151] When the ordering service 710 initializes a new data block 730, the new data block 730 may be broadcast to the submitting peers (e.g., blockchain nodes 711, 712, and 713). In response, each submitting peer verifies the transaction within the new data block 730 by checking to ensure that the read set and the write set still match the current world state in the state database 724. Specifically, the submitting peer may determine whether the read data that existed when the endorser simulated the transaction is the same as the current world state in the state database 724. When the submitting peer verifies the transaction, the transaction is written to the blockchain 722 on the distributed ledger 720, and the state database 724 is updated with the write data from the read-write set. If the transaction fails, that is, if the submitting peer finds that the read-write set does not match the current world state in the state database 724, then the transaction ordered into the block will still be included in the block, but it will be marked as invalid and the state database 724 will not be updated.

[0152] See also Figure 7B , a new data block 730 (also referred to as a data block) stored on the blockchain 722 of the distributed ledger 720 may include multiple data segments such as a block header 740, block data 750, and block metadata 760. It should be appreciated that each described block and its contents, such as Figure 7B The new data block 730 and its contents shown in FIG. 7 are merely examples and are not intended to limit the scope of the exemplary embodiments. The new data block 730 may store transaction information for N transactions (e.g., 1, 10, 100, 500, 1000, 2000, 3000, etc.) in the block data 750. The new data block 730 may also include (e.g., Fig. 7A In particular, the block header 740 may include a hash value of the block header of the previous block. The block header 740 may also include a unique block number, a hash value of the block data 750 of the new data block 730, and the like. The block number of the new data block 730 may be unique and may be assigned in various orders, such as an increasing / sequential order starting from zero.

[0153] The block data 750 may store transaction information for each transaction recorded within the new data block 730. For example, the transaction data may include one or more of the transaction's type, version, timestamp, channel ID of the distributed ledger 720, transaction ID, epoch, payload visibility, chaincode path (deploy tx), chaincode name, chaincode version, inputs (chaincode and function), client (creator) identity such as public key and certificate, client's signature, endorser's identity, endorser signature, proposal hash, chaincode event, response status, namespace, read set (list of keys and versions read by the transaction, etc.), write set (list of keys and values, etc.), start key, end key, key list, Merkle tree query summary, etc. The transaction data may be stored for each of the N transactions.

[0154] In some embodiments, the block data 750 may also store new data 762 that adds additional information to the hash chain of blocks in the blockchain 722. The additional information includes one or more of the steps, features, processes, and / or actions illustrated or described herein. Thus, the new data 762 may be stored in an immutable log of blocks on the distributed ledger 720. Some benefits of storing such new data 762 are reflected in the various embodiments disclosed and described herein. Although in Figure 7B In the example, new data 762 is described in block data 750 , but new data 762 may also be located in block header 740 or block metadata 760 .

[0155] Block metadata 760 can store multiple fields of metadata (e.g., as a byte array, etc.). The metadata fields may include a signature when the block was created, a reference to the latest configuration block, a transaction filter that identifies valid and invalid transactions within the block, a persistent latest offset of the sorting service that sorts the block, etc. The signature, the latest configuration block, and the sorter metadata can be added by the sorting service 710. At the same time, the submitter of the block (such as blockchain node 712) can add validity / invalidity information based on endorsement policies, verification of read / write collections, etc. The transaction filter may include a byte array of size equal to the number of transactions in the block data 750, and a verification code that identifies whether the transaction is valid / invalid.

[0156] Figure 7CAn embodiment of a blockchain 770 of digital content according to embodiments described herein is illustrated. The digital content may include one or more files and associated information. The files may include media, images, videos, audio, files, links, graphics, animations, web pages, documents, or other forms of digital content. The immutable, append-only nature of the blockchain serves to protect the integrity, validity, and authenticity of the digital content, making the blockchain suitable for use in legal proceedings where admissibility rules apply, or in other contexts where evidence is considered or there is other interest in the presentation and use of digital information. In this case, the digital content may be referred to as digital evidence.

[0157] The blockchain can be formed in a variety of ways. In one embodiment, the digital content can be contained in and accessible from the blockchain itself. For example, each block of the blockchain can store a hash value of reference information (e.g., block header, value, etc.) and the associated digital content. The hash value and the associated digital content can then be encrypted together. Thus, by decrypting each block in the blockchain, the digital content of each block can be accessed, and the hash value of each block can be used as a basis for referencing the previous block. This can be illustrated as follows:

[0158]

[0159] In one embodiment, the digital content may not be included in the blockchain. For example, the blockchain may store a cryptographic hash value of the content of each block without storing any digital content. The digital content may be stored in another storage area or storage address in association with the hash value of the original file. The other storage area may be the same storage device used to store the blockchain, or it may be a different storage area, or even a separate relational database. The digital content of each block may be referenced or accessed by obtaining or querying the hash value of the block of interest, and then searching the storage area for the hash value stored corresponding to the actual digital content. This operation may be performed, for example, by a database gatekeeper. This may be illustrated as follows:

[0160]

[0161] exist Figure 7C In the exemplary embodiment of the present invention, the blockchain 770 includes a number of blocks 7781, 7782, ... 778 that are cryptographically linked in an ordered sequence. N , where N ≥ 1. Used to link blocks 7781, 7782, ... 778 N The encryption may be any of a number of keyed or unkeyed hash functions. In one embodiment, blocks 7781, 7782, ... 778 NThe blocks are subjected to a hash function that produces an n-bit alphanumeric output (where n is 256 or another number) from an input based on the information in the block. Examples of such hash functions include (but are not limited to) SHA-type (SHA stands for Secure Hash Algorithm) algorithms, Merkle-Damgard algorithms, HAIFA algorithms, Merkle tree algorithms, random number-based algorithms, and non-collision-resistant PRF algorithms. In another embodiment, blocks 7781, 7782, ... 778 N A function other than a hash function may be used to cryptographically link. For purposes of illustration, the following description is made with respect to a hash function, such as SHA-2.

[0162] Blocks 7781, 7782, ... 778 in the blockchain N Includes a block header, a version of the file, and a value. As a result of the hash in the blockchain, the block header and value are different for each block. In one embodiment, the value may be included in the block header. As described in more detail below, the version of the file may be the original file, or a different version of the original file.

[0163] The first block 7781 in the blockchain is called the genesis block, and includes a block header 7721, a raw file 7741, and an initial value 7761. The hashing scheme used for the genesis block, and even in all subsequent blocks, may be different. For example, all the information in the first block 7781 may be hashed together at the same time, or each piece of information or a portion of information in the first block 7781 may be hashed separately, and then the hashes of the portions that were hashed separately may be performed.

[0164] The block header 7721 may include one or more initial parameters, which may include, for example, a version number, a timestamp, a random number, root information, a difficulty level, a consensus protocol, a duration, a media format, a source, descriptive keywords, and / or other information associated with the original file 7741 and / or the blockchain. The block header 7721 may be automatically generated (e.g., automatically generated by blockchain network management software), or may be manually generated by a blockchain participant. N Unlike the block header in , the block header 7721 in the genesis block does not reference the previous block, simply because there is no previous block.

[0165] The original file 7741 in the genesis block may be, for example, data captured by a device that has been processed or not processed before being included in the blockchain. The original file 7741 is received from a device, a media source, or a node through an interface of the system. The original file 7741 is associated with metadata, which may be generated manually or automatically by a user, a device, and / or a system processor, for example. The metadata may be included in the first block 7781 in association with the original file 7741.

[0166] The value 7761 in the genesis 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 a hash value of the original file 7741, 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:

[0167] 1) Calculate the SHA-2 hash value of the original file

[0168] 2) Originating device ID

[0169] 3) The start timestamp of the original file

[0170] 4) The original storage location of the original file

[0171] 5) The blockchain network member ID of the software that currently controls the original file and associated metadata

[0172] Other blocks in the blockchain: 7782~778 N It also has a block header, file, and value. However, unlike the first block 7721, the block headers 7722 to 772 N Each includes the hash of the immediately preceding block. The hash of the immediately preceding block may be just the hash of the block header of the preceding block, or may be the hash of the entire preceding block. By including the hash of the preceding block in each remaining block, as indicated by arrow 780, it is possible to trace back from the Nth block to the genesis block (and associated original files) block by block to establish an auditable and immutable chain of custody.

[0173] Block headers 7722 to 772 in other blocks N Each may also include other information, such as a version number, a timestamp, a nonce, root information, a difficulty level, a consensus protocol, and / or other parameters or information generally associated with the corresponding file and / or blockchain.

[0174] Files 7742~774 in other blocks NIt may be the same as the original file, or it may be a modified version of the original file in the genesis block, depending on, for example, the type of processing performed. The type of processing performed may vary from block to block. The processing may involve, for example, any modification of the file in the previous block, such as revising the file's information or otherwise changing the file's contents, deleting information from the file, or adding or appending information to the file.

[0175] Additionally or alternatively, the processing may simply involve copying a file from a prior block, changing a storage location of a file, analyzing a file from one or more prior blocks, moving a file from one storage or memory location to another storage or memory location, or performing an action related to a file of the blockchain and / or its associated metadata. Processing involving analyzing a file may, for example, include appending, including, or otherwise associating analytical data, statistical data, or other information associated with the file.

[0176] The value of each other block in other blocks is 7762 to 776 N Each block is a unique value and varies from one to another due to the processing performed. For example, a value in any one block corresponds to an updated version of a value in a previous block. The update is reflected in the hash value of the block to which the value is assigned. The value of each block then provides an indication of what processing was performed in each block and also allows tracing back to the original file through the blockchain. This tracing confirms the chain of custody of the file within the entire blockchain.

[0177] For example, consider a situation where portions of a file in a previous block are redacted, masked, or pixelated in order to protect the identity of the person shown in the file. In this case, the block that includes the redacted file will contain metadata associated with the redacted file, such as how the redaction was made, who made the redaction, a timestamp when the redaction occurred, and so on. The metadata may be hashed to form a value. Since the metadata for this block is different from the information that was hashed to form a value in the previous block, the values ​​are different from each other and can be recovered upon decryption.

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

[0179] a) A new SHA-2 hash is calculated if the file is manipulated in any way (for example, if the file is revised, copied, altered, accessed, or some other action is taken)

[0180] b) The new storage location of the file

[0181] c) Identify new metadata associated with the file

[0182] d) The transfer of access to or control of a document from one blockchain participant to another

[0183] Fig.7D According to an exemplary embodiment, an embodiment of a block that can represent the structure of each block in the blockchain 790 is illustrated. i Including block header 772 i 、File 774 i The sum is 776 i .

[0184] Block header 772 i Including the previous block Block i-1 The hash value and additional reference information of the previous block, such as any type of information discussed in this article (e.g., block header information including references, features, parameters, etc.). All blocks reference the hash value of the previous block, except for the genesis block. The hash value of the previous block can be just the hash value of the block header in the previous block, or the hash value of all or part of the information in the previous block (including files and metadata).

[0185] File 774 i A plurality of data are included in sequence, such as Data 1, Data 2, ..., Data N. The data are marked with metadata Metadata 1, Metadata 2, ..., Metadata N describing the content and / or characteristics associated with the data. For example, the metadata of each data may include information indicating a timestamp of the data, processing data, keywords indicating the person or other content described in the data, and / or other features that help determine the validity and content of the entire file, especially, for example, as described in conjunction with the embodiments discussed below, its use as digital evidence. In addition to the metadata, each data can be marked with a reference REF1, REF2, ..., REFN to the previous data to prevent tampering, blanks in the file, and sequential references through the file.

[0186] Once metadata is assigned to data (e.g., by a smart contract), the metadata cannot be changed without changing the hash, which can be easily identified as invalid. The metadata thus creates a data log of information that can be accessed by participants in the blockchain for use.

[0187] Value 776 i A hash value or other value calculated based on any of the various types of information discussed above. For example, for any given block i, the value of the block may be updated to reflect the processing performed on the block, such as a new hash value, a new storage location, new metadata for an associated file, a transfer of control or access, an identifier, or other actions or information to be added. Although the values ​​in each block are represented as separate from the metadata of the file and block header data, in another embodiment, the values ​​may be based in part or in whole on the metadata.

[0188] Once the blockchain 770 is formed, at any time, an immutable chain of custody of the file can be obtained by querying the blockchain through the transaction history of the values ​​between each block. The query or tracking process can start by decrypting the value of the most recently included block (e.g., the last (Nth) block), and then continue to decrypt the values ​​of each other block until the genesis block is reached and the original file is recovered. Decryption can also involve decrypting the block headers and the file and associated metadata at each block.

[0189] Decryption is based on the type of encryption that occurs on each block. This may involve the use of a private key, a public key, or a public-private key pair. For example, when using asymmetric encryption, a blockchain participant or a processor in the network may generate a public key and a private key using a predetermined algorithm. The public key and the private key are related to each other through a mathematical relationship. The public key may be publicly distributed to act as an address, such as an IP address or home address, for receiving messages from other users. The private key is kept secret and is used to digitally sign messages sent to other blockchain participants. The signature is included in the message so that the recipient can verify it using the sender's public key. In this way, the recipient can be sure that only the sender could have sent the message.

[0190] Generating a key pair may be similar to creating an account on the blockchain, but without having to actually register it anywhere. In addition, every transaction performed on the blockchain is digitally signed by the sender using his private key. This signature ensures that only the owner of the account can track and process (if within the scope of permissions determined by the smart contract) the files on the blockchain.

[0191] Fig. 8A and 8B Illustrate additional examples of use cases for blockchains that may be included and used herein. In particular, Fig. 8A An example 800 of a blockchain 810 storing machine learning (artificial intelligence) data is illustrated. Machine learning relies on large amounts of historical data (or training data) to build predictive models in order to make accurate predictions about new data. Machine learning software (e.g., neural networks, etc.) can often sift through millions of records to discover non-intuitive patterns.

[0192] exist Fig. 8AIn the example of , host platform 820 builds and deploys a machine learning model for predictive monitoring of asset 830. Here, host platform 820 can be a cloud platform, an industrial server, a web server, a personal computer, a user device, etc. Asset 830 can be any type of asset (e.g., a machine or equipment, etc.), such as an airplane, a locomotive, a turbine, medical machinery and equipment, oil and gas equipment, a boat, a ship, a vehicle, etc. For another example, asset 830 can be a non-tangible asset, such as stocks, currency, digital currency, insurance, etc.

[0193] Blockchain 810 can be used to significantly improve the training process 802 of the machine learning model and the prediction process 804 based on the trained machine learning model. For example, at 802, historical data can be stored on blockchain 810 by the asset 830 itself (or through an intermediary, not shown), rather than requiring data scientists / engineers or other users to collect data. This can significantly reduce the collection time required by the host platform 820 when training a predictive model. For example, by utilizing smart contracts, data can be directly and reliably transmitted directly from its origin to blockchain 810. By utilizing blockchain 810 to ensure the security and ownership of the collected data, smart contracts can send data directly from assets to individuals who use the data to build machine learning models. This allows data to be shared between assets 830.

[0194] Based on a consensus mechanism, the collected data can be stored in the blockchain 810. The consensus mechanism pulls in (permitted nodes) to ensure that the data in the record is verified and accurate. The recorded data is time-stamped, cryptographically signed, and immutable. Thus, the recorded data is auditable, transparent, and secure. In some cases (i.e., supply chain, medical, logistics, etc.), adding IoT devices that write directly to the blockchain can increase the frequency and accuracy of recorded data.

[0195] In addition, the training of the machine learning model on the collected data can be performed by the host platform 820 for multiple rounds of revisions and testing. Each round can be based on additional data or data that has not been considered before to help expand the knowledge of the machine learning model. At 802, the different training and testing steps (and the data associated therewith) can be stored on the blockchain 810 by the host platform 820. Each revision 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. In addition, when the host platform 820 obtains the last trained model, the resulting model can be stored on the blockchain 810.

[0196] After the model has been trained, it can be deployed in a real environment where the model can make predictions / decisions based on the execution of the final trained machine learning model. For example, at 804, the machine learning model can be used for condition-based maintenance (CBM) of assets such as aircraft, wind turbines, medical machines, etc. In this example, data fed back from the asset 830 can be input into the machine learning model for event prediction, such as failure events, error codes, etc. Decisions made by executing the machine learning model on the host platform 820 can be stored on the blockchain 810 to provide auditable / verifiable evidence. As a non-limiting example, the machine learning model can predict a future failure / failure of a component of the asset 830 and create an alert or notification to replace the component. The data behind the decision can be stored on the blockchain 810 by the host platform 820. In one embodiment, the features and / or actions illustrated and / or described herein can occur on or for the blockchain 810.

[0197] New transactions to a blockchain can be gathered into a new block and added to the existing hash. This is then encrypted to create a new hash for the new block. This is added to the next list of transactions as the new transaction is encrypted, and so on. The result is a chain of blocks, each containing the hashes of all the previous blocks. The computers storing these blocks periodically compare their hashes to ensure they all agree. Any computer that disagrees discards the record that caused the problem. This method is good for ensuring the blockchain is tamper-resistant, but it is not perfect.

[0198] One way to game this system is for a dishonest user to change the transaction list in their favor, but in a way that keeps the hash unchanged. This can be done by brute force, in other words, by changing the record, encrypting the result, and seeing if the hash is the same. If the hash is not the same, then try again and again until a matching hash is found. The security of the blockchain is based on the belief that ordinary computers can only perform such brute force attacks on completely unrealistic timescales such as the age of the universe. In contrast, quantum computers are much faster (1000 times faster) and thus pose a much greater threat.

[0199] Figure 8B An example 850 of a quantum-secure blockchain 852 that implements quantum key distribution (QKD) to resist quantum computing attacks is illustrated. In this example, blockchain users can use QKD to verify each other's identities. This uses quantum particles such as photons to send information, which cannot be copied by an eavesdropper without destroying them. In this way, the sender and receiver can be sure of each other's identity through the blockchain.

[0200] exist Figure 8BIn the example of , there are 4 users 854, 856, 858, and 860. Each pair of users can share a key 862 between them (i.e., QKD). Since there are 4 nodes in this example, there are 6 pairs of nodes, so 6 different keys 862 are used, including QKD AB , QKD AC , QKD AD , QKD BC , QKD BD and QKD CD Each pair of users can create QKD by sending information using quantum particles such as photons, which cannot be copied by an eavesdropper without destroying them. This way, a pair of users can be confident of each other's identity.

[0201] The operation of blockchain 852 is 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 traditional blockchain networks. Each transaction can contain information about the sender, the receiver, the creation time, the amount (or value) to be transferred, a list of reference transactions that prove that the sender has funds for the operation, etc. The transaction record is then sent to all other nodes, where it is entered into a pool of unconfirmed transactions. Here, two parties (i.e., a pair of users among 854-860) authenticate the transaction by providing their shared secret key 862 (QKD). The quantum signature can be attached to each transaction, making it extremely difficult to tamper with. Each node checks their entries against a local copy of blockchain 852 to verify that each transaction has sufficient funds. However, these transactions have not yet been confirmed.

[0202] Blocks can be created in a decentralized manner using a broadcast protocol. Over a predetermined period of time (e.g., seconds, minutes, hours, etc.), the network can apply the broadcast protocol to any unconfirmed transaction, thereby reaching a Byzantine agreement (consensus) on the correct version of the transaction. For example, each node can have a private value (transaction data for that particular node). In the first round, nodes transmit their private values ​​to each other. In subsequent rounds, nodes convey the information they received from other nodes in the previous round. Here, honest nodes are able to create a complete set of transactions in a new block. The new block can be added to blockchain 852. In one embodiment, the features and / or actions illustrated and / or described herein may occur on or for blockchain 852.

[0203] Fig. 9The diagram illustrates an exemplary system 900 that supports one or more exemplary embodiments illustrated and / or described herein. The system 900 includes a computer system / server 902 that operates with numerous other general or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and / or configurations that may be suitable for use with the computer system / server 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 including any of the above systems or devices, and the like.

[0204] The computer system / server 902 may be described in the general context of computer system-executable instructions, such as program modules, executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system / server 902 may be practiced in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.

[0205] like Fig. 9 As shown, the computer system / server 902 in the cloud computing node 900 is in the form of a general-purpose computing device. The components of the computer system / server 902 may include, but are not limited to: one or more processors or processing units 904, a system memory 906, and a bus connecting different system components (including the system memory 906 and the processing unit 904).

[0206] The term "bus" refers to one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0207] The computer system / server 902 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer system / server 902, including volatile and nonvolatile media, removable and non-removable media.

[0208] In one embodiment, the system memory 906 implements the flowcharts of other figures. The 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 memory 912. The computer system / server 902 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 914 may be used to read and write non-removable, non-volatile magnetic media (not shown in the figure, usually referred to as a "hard drive"). Although not shown in Figure 1, a disk drive for reading and writing removable non-volatile disks (such as "floppy disks") and an optical disk drive for reading and writing removable non-volatile optical disks (such as CD-ROM, DVD-ROM or other optical media) may be provided. In these cases, each drive may be connected to the bus via one or more data medium interfaces. The memory 906 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.

[0209] A program / utility 916 having a set (at least one) of program modules 918 may be stored, for example, in the memory 906. Such program modules 918 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 918 generally perform the functions and / or methods of the various embodiments described herein.

[0210] It will be appreciated by those skilled in the art that various aspects of the present application may be embodied as a system, method or computer program product. Thus, various aspects of the present application may take the form of a pure hardware embodiment, a pure software embodiment (including firmware, resident software, microcode, etc.), or in combination with software and hardware embodiments that are generally referred to herein as "circuit", "module" or "system". In addition, various aspects of the present application may take the form of a computer program product contained in one or more computer-readable media, wherein the one or more computer-readable media have a computer-readable program code contained therein.

[0211] The computer system / server 902 may also communicate with one or more external devices 920 (e.g., keyboards, pointing devices, displays 922, etc.), may communicate with one or more devices that enable a user to interact with the computer system / server 902, and / or may communicate with any device that enables the computer system / server 902 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 924. In addition, the computer system / server 902 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 926. As shown, the network adapter 926 communicates with other modules of the computer system / server 902 via a bus. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer system / server 902, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0212] Although the exemplary embodiments of at least one of the systems, methods and non-temporary computer-readable media are illustrated in the drawings and described in the detailed description above, it is to be understood that the present application is not limited to the disclosed embodiments, but allows numerous rearrangements, modifications and substitutions as stated and defined by the following claims. For example, the capabilities of the systems of the various drawings can be completed by one or more of the modules or components recorded in this document or in the distributed architecture, which may include a transmitter and / or a receiver. For example, all or part of the functions performed by a single module can be performed by one or more of these modules. In addition, the functions recorded in this document can be performed at different times in relation to various events inside or outside the module or component. In addition, the information sent between the modules can be sent between the modules via at least one of the following: a data network, the Internet, a voice network, an Internet protocol network, a wireless device, a wired device and / or via a variety of protocols. In addition, the message sent or received by any module can be sent or received directly and / or via one or more other modules.

[0213] Those skilled in the art will appreciate that a "system" may be embodied as a personal computer, a server, a console, a personal digital assistant (PDA), a cellular telephone, a tablet computing device, a smart phone, or any other suitable computing device, or a combination of devices. Representing the above functions as being performed by a "system" is not intended to limit the scope of the present application in any way, but is intended to provide an example of many embodiments. In fact, the methods, systems, and devices disclosed herein can be implemented in localized and distributed forms consistent with computing technology.

[0214] It should be noted that some of the system features described in this specification are introduced as modules to more particularly emphasize their implementation independence. For example, modules can be implemented as hardware circuits, including custom very large scale integration (VLSI) circuits 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.

[0215] Modules may also be implemented at least in part in software so that they can be executed by various types of processors. For example, an identified executable code unit may include one or more physical or logical blocks of computer instructions that may be organized into objects, procedures, or functions. The executable code of the identified modules need not be physically put together, but may include different instructions stored in different locations that, when logically connected together, constitute the modules and achieve the specified purpose of the modules. In addition, modules may be stored on a computer-readable medium, which may be, for example, a hard drive, a flash memory device, a random access memory (RAM), a magnetic tape, or any other such medium for storing data.

[0216] In practice, an executable code module may be one instruction or multiple instructions, and may even be distributed across several different code segments, different programs, and multiple storage devices. Similarly, herein, operational data may be identified and described in a module, may be embodied in any appropriate form, and may be organized within any appropriate type of data structure. The operational data may be collected into a single data set, or may be distributed in different locations, including on different storage devices, and may exist at least in part only as electronic signals on a system or network.

[0217] It is easy to understand that the various components of the present application as described and illustrated in the drawings herein can be arranged and designed in a variety of different configurations. Thus, the detailed description of the embodiments is not intended to limit the scope of the application claimed, but is only a representative of the selected embodiments of the present application.

[0218] Those skilled in the art will readily appreciate that the above-described multiple steps may be used in different orders, and / or may be practiced with hardware elements configured differently from those disclosed. Thus, although the present application has been described based on these preferred embodiments, it is apparent to those skilled in the art that some modifications, variations, and alternative structures may be apparent.

[0219] Although preferred embodiments of the present application have been described, it is to be understood that the described embodiments are merely illustrative and that the scope of the present application is limited solely by the appended claims when considering its various equivalents and modifications (e.g., protocols, hardware devices, software platforms, etc.).

Claims

1. A blockchain network, comprising: a peripheral peer node and a plurality of other peripheral peer nodes, wherein the peripheral peer node and each other peripheral node in the plurality of peripheral peer nodes are associated with a processor that, when executing one or more instructions stored in a memory, configures the processor to: In parallel, receive a batch of new blocks from the blockchain network’s orderer peers, and Calculate the hash values ​​of the batch of new blocks in parallel, generating in parallel a Merkle tree having leaf nodes that are hash values ​​of the batch of new blocks, Generating a root node hash value of the Merkle tree in parallel; and Wherein the processor associated with the peripheral peer node is further configured to: requesting and receiving root node hash values ​​of a majority of other peripheral peer nodes from the plurality of other peripheral peer nodes, identifying the orderer peer node as potentially malicious based on identifying that a root node hash value in the received root node hash values ​​is different than a root node hash value calculated by a processor associated with the peripheral peer node, In response to the orderer peer being identified as potentially malicious, requesting a new block corresponding to a different root node hash value from another peripheral peer node in the majority of peripheral peer nodes, and In response to receipt of the new block, when the new block is different from a new block received by the peripheral peer node from the sorter peer, verifying the sorter peer node as malicious.

2. The blockchain network of claim 1 , wherein the processor associated with the peripheral peer node is further configured to: In response to the sorter peer being identified as malicious, stopping submitting new blocks to the ledger of the blockchain.

3. The blockchain network of claim 1 , wherein the processor associated with the peripheral peer node is further configured to: Request the root node hash from most other peripheral peers.

4. The blockchain network of claim 1 , wherein the processor associated with each other peripheral peer node is further configured to: A root node hash value is requested from the peripheral peer node and from all other peripheral peer nodes of a majority of other peripheral peer nodes.

5. The blockchain network of claim 1 , wherein the processor associated with the peripheral peer node is further configured to: identifying that all received root node hash values ​​differ from a root node hash value calculated by the peripheral peer node; and In response to identifying that all received root node hash values ​​are different from the root node hash value calculated by the peripheral peer node, stopping submitting new blocks to the ledger of the blockchain.

6. The blockchain network of claim 1 , wherein the processor associated with the peripheral peer node is further configured to: Request new blocks from other peripheral peer nodes corresponding to different root node hashes.

7. The blockchain network according to claim 1, wherein: When the processor associated with the peripheral peer node identifies that a root node hash value in the received root node hash values ​​is different from the calculated root node hash value, the processor associated with the peripheral peer node is further configured to: Identify potential chain-forking attacks by sorter peers.

8. A method comprising: A batch of new blocks is received from the orderer peer of the blockchain network by the peripheral peer and multiple other peripheral peers in parallel, The hash values ​​of the batch of new blocks are calculated in parallel by the peripheral peer and a plurality of other peripheral peers, generating, by the peripheral peer and a plurality of other peripheral peers in parallel, a Merkle tree having leaf nodes that are hash values ​​of the batch of new blocks, Generate a root node hash value of the Merkle tree in parallel by the peripheral peer and a plurality of other peripheral peers; as well as The method further comprises: requesting and receiving, by the peripheral peer, root node hash values ​​of a majority of other peripheral peers from the plurality of other peripheral peers, identifying, by the peripheral peer, the sorter peer node as potentially malicious based on identifying that a root node hash value in the received root node hash values ​​is different from a root node hash value calculated by the peripheral peer, In response to the orderer peer being identified as potentially malicious, requesting by the peripheral peer a new block corresponding to a different root node hash value from another peripheral peer in the majority of peripheral peers, and In response to receipt of the new block, the orderer peer is verified by the peripheral peer as malicious when the new block is different from a new block received by the peripheral peer from the orderer peer.

9. The method according to claim 8, wherein the method further comprises: In response to the orderer peer being identified as malicious, submission of new blocks to the ledger of the blockchain is stopped by the peripheral peers.

10. The method according to claim 8, wherein the method further comprises: The peripheral peer requests the root node hash value from most other peripheral peer nodes.

11. The method according to claim 8, wherein the method further comprises: The root node hash value is requested by each other peripheral peer of the majority of other peripheral peers from the peripheral peer and from all other peripheral peers of the majority of other peripheral peers.

12. The method according to claim 8, wherein the method further comprises: identifying by the peripheral peer that all received root node hash values ​​are different from the root node hash values ​​calculated by the peripheral peer; as well as In response to identifying that all received root node hash values ​​are different from the root node hash value calculated by the peripheral peer, the peripheral peer stops submitting new blocks to the ledger of the blockchain.

13. The method according to claim 8, wherein the method further comprises: It is up to the outlying peers to request new blocks from other outlying peers corresponding to different root node hashes.

14. The method of claim 8, wherein identifying that a root node hash value in the received root node hash values ​​is different from a root node hash value calculated by the peripheral peer further comprises: Identify potential chain-forking attacks on orderer peers by outlying peers.

15. A non-transitory computer-readable medium comprising one or more instructions that, when executed by one or more processors of a peripheral peer and a plurality of other peripheral peers in a blockchain network, cause the one or more processors to perform: In parallel, a batch of new blocks are received from the orderer peers of the blockchain network, Calculate the hash values ​​of the batch of new blocks in parallel, generating in parallel a Merkle tree having leaf nodes that are hash values ​​of the batch of new blocks, Generating a root node hash value of the Merkle tree in parallel; and wherein the one or more instructions further cause one or more processors of the peripheral peer to execute: requesting and receiving root node hash values ​​of a majority of other peripheral peers from the plurality of other peripheral peers, identifying the sorter peer node as potentially malicious based on identifying that a root node hash value in the received root node hash values ​​is different from a root node hash value calculated by the peripheral peer, In response to the orderer peer being identified as potentially malicious, requesting a new block corresponding to a different root node hash value from another outlying peer in the majority of outlying peers, and In response to receipt of the new block, the sorter peer is verified as malicious when the new block received from the other peripheral peers is different from the new block received by the peripheral peer from the sorter peer.

16. The non-transitory computer-readable medium of claim 15, wherein each of the one or more instructions further causes one or more processors of the peripheral peer to execute: In response to the sorter peer being identified as malicious, stopping submitting new blocks to the ledger of the blockchain.

17. The non-transitory computer-readable medium of claim 15, wherein the one or more instructions further cause one or more processors of the peripheral peer to execute: Request the root node hash from most other peripheral peers.

18. The non-transitory computer readable medium of claim 15, wherein the one or more instructions further cause one or more processors of the plurality of other peripheral peers to perform: The root node hash value is requested by each other peripheral peer of the majority of other peripheral peers from the peripheral peer node and from all other peripheral peers of the majority of other peripheral peers.

19. The non-transitory computer readable medium of claim 15, wherein the one or more instructions further cause one or more processors of the peripheral peer to perform: Identifying that all received root node hash values ​​differ from hash values ​​calculated by peripheral peers; and In response to identifying that all received hash values ​​are different from the root node hash value calculated by the peripheral peer, stopping submitting new blocks to the ledger of the blockchain.

20. The non-transitory computer readable medium of claim 15, wherein the one or more instructions further cause one or more processors of the peripheral peer to perform: Request new blocks from other peripheral peers corresponding to different root node hashes.