Method and system for rapid consensus in a distributed ledger

The Fast B4B protocol addresses the challenge of Byzantine faults in blockchain consensus by achieving fast and fault-tolerant consensus in two communication steps, ensuring strong safety and efficient view changes, thereby improving transaction processing efficiency.

JP2024535784APending Publication Date: 2024-10-02ジャラルザイモハマド +2
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024515526
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-09-07
Filing Date
2022-09-07
Publication Date
2024-10-02

AI Technical Summary

Technical Problem

Existing blockchain consensus mechanisms face challenges in achieving fast and fault-tolerant consensus, particularly in the presence of Byzantine faults, leading to high latency and inefficiencies in transaction processing.

Method used

A fast Byzantine fault-tolerant (BFT) consensus protocol, referred to as Fast B4B, which operates in two communication steps and tolerates up to (n-1)/3 Byzantine faults without requiring trusted hardware, ensuring strong safety and efficient view changes.

Benefits of technology

The Fast B4B protocol significantly reduces latency and improves throughput by allowing consensus in two communication steps while maintaining strong safety guarantees, even in the presence of Byzantine faults, enhancing the reliability and efficiency of blockchain networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024535784000001_ABST
    Figure 2024535784000001_ABST
Patent Text Reader

Abstract

Blockchain operates as a decentralized self-regulating system with contributions from hundreds of thousands of participants engaged in verifying and authenticating transactions occurring on the blockchain. A consensus mechanism in such a system provides a set of rules that determine the validity of contributions made by various participants of the blockchain. The consensus mechanism must not only be fault-tolerant but also have low latency in establishing consensus. Prior art solutions are either capable of tolerating at most (n+1) / 5 faults to reach consensus or execution of more than two communication steps to provide tolerance of any (Byzantine) faults, or cannot guarantee strong safety properties against honest primaries. To improve the speed of the consensus mechanism, the inventors have established a BFT consensus protocol that operates with only two communication steps. The proposed protocol tolerates at most (n-1) / 3 faults and provides strong safety guarantees against honest primaries.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This patent application claims the benefit of priority to U.S. Provisional Patent Application No. 63 / 260,962, filed September 7, 2021.

[0002] The present application relates to distributed ledgers, and more particularly to methods and systems for providing fast Byzantine fault tolerant consensus among nodes supporting a distributed ledger. [Background technology]

[0003] In any centralized system, such as a database that holds vital information about driver's licenses in a country, a central administrator has the authority to maintain and update the database. The task of making any updates, such as adding / removing / updating the names of people entitled to a particular license, is carried out by the central authority, who remains the sole responsible for maintaining the authentic records. However, blockchains operate as decentralized, self-regulating systems that operate on a scale up to a global scale without a single authority. They involve contributions from hundreds of thousands of participants who work on verifying and authenticating transactions that occur on the blockchain.

[0004] In such a dynamically changing blockchain state, these publicly shared ledgers require efficient, fair, real-time, functional, reliable and secure mechanisms to ensure that all transactions occurring on the network are authentic and that all participants agree to a consensus on the state of the ledger. This all important task is performed by a consensus mechanism, which is a set of rules that determine the validity of contributions made by the various participants (i.e., nodes or transactors) of the blockchain.

[0005] It is desirable for a consensus mechanism to be tolerant of faults (e.g., crash faults or Byzantine faults (any fault)) as well as have low latency in establishing consensus. The latter is important because until consensus is reached on the current block in the chain, subsequent transactions cannot rely on the data in that block, essentially preventing any further activity until consensus is reached. In many cases, this time to consensus is not only a limit on the speed at which transactions can be made, but also a critical limit, such as when a block is associated with a financial transaction at a point-of-sale terminal, for example, obtaining permission to access medical data, etc.

[0006] Therefore, it is beneficial to achieve consensus faster. We have established a method for fast Byzantine Fault Tolerant (BFT) consensus on blockchains, called FastB4B.

[0007] Other aspects and features of the present invention will become apparent to those of ordinary skill in the art upon review of the following description of specific embodiments of the invention in conjunction with the accompanying figures. Summary of the Invention

[0008] The object of the present invention is to alleviate limitations in the prior art related to distributed ledgers, and more specifically, to a method and system for providing fast Byzantine fault tolerant consensus among nodes supporting a distributed ledger.

[0009] According to one embodiment of the present invention, there is provided a method comprising the steps of: providing a plurality of n nodes communicating over a communications network, each node comprising a microprocessor for performing tasks related to the distributed ledger and executing software instructions stored in a memory accessible to the microprocessor; providing a memory that stores software instructions, the software instructions relating to a processing block of a distributed ledger and a protocol for handling Byzantine faults in a subset of a plurality of n nodes; The protocol achieves consensus in two communication steps, a first of the two communication steps being a receipt of a message to a node of the plurality of n nodes and a second of the two communication steps being a transmission of another message from a node of the plurality of n nodes; The protocol can reach consensus when a number f of multiple n nodes exhibits a Byzantine fault, A method is provided where f is an upper bound on the number of Byzantine nodes, where f=(n-1) / 3.

[0010] According to one embodiment of the present invention, there is provided a system comprising: a plurality of n nodes in communication over a communications network, each node comprising a microprocessor for performing tasks related to the distributed ledger and for executing software instructions stored in memory accessible to the microprocessor; a memory storing software instructions relating to a processing block of a distributed ledger and a protocol for handling Byzantine faults in a subset of the plurality of n nodes; The protocol achieves consensus in two communication steps, a first of the two communication steps being a receipt of a message to a node of the plurality of n nodes and a second of the two communication steps being a transmission of another message from a node of the plurality of n nodes; The protocol can reach consensus when a number f of multiple n nodes exhibits a Byzantine fault, A system is provided where f is an upper bound on the number of Byzantine nodes, where f=(n-1) / 3.

[0011] According to one embodiment of the present invention, there is provided computer-executable instructions stored on a non-volatile non-transitory storage medium for execution by a microprocessor, the computer-executable instructions, when executed, causing the microprocessor to: configured to run a process for processing blocks of the distributed ledger; A process is provided in which computer-executable instructions include a protocol for handling Byzantine faults within a subset of a plurality of n nodes that communicate information about a distributed ledger over a communications network.

[0012] According to one embodiment of the present invention, there is provided a method comprising the steps of: providing a plurality of n nodes communicating over a communications network to establish a running protocol, each node comprising a microprocessor for performing tasks related to the distributed ledger and executing software instructions stored in memory accessible to the microprocessor; The protocol can reach consensus when a number f of multiple n nodes exhibits a Byzantine fault, A method is provided where f is an upper bound on the number of Byzantine nodes, where f=(n-1) / 3.

[0013] According to one embodiment of the present invention, there is provided a method comprising the steps of: providing a plurality of n nodes communicating over a communications network to establish a running protocol, each node comprising a microprocessor for performing tasks related to the distributed ledger and executing software instructions stored in memory accessible to the microprocessor; The first mode of the protocol is established when a distributed ledger block is added to the distributed ledger without encountering any failures. A method is provided in which a second mode of the protocol is established when a failure is encountered, the second of the two modes resulting in a change of the primary node transmitting a block for which consensus is sought for addition to the distributed ledger, and a primary node that previously transmitted a block for which consensus is sought for addition to the distributed ledger is blacklisted if it performs equalization (proposing multiple blocks for the same sequence).

[0014] According to one embodiment of the present invention, there is provided a method comprising the steps of: providing a plurality of n nodes communicating over a communications network to establish a running protocol, each node comprising a microprocessor for performing tasks related to the distributed ledger and executing software instructions stored in memory accessible to the microprocessor; The protocol can reach consensus when a number f of multiple n nodes exhibits a Byzantine fault, A method is provided in which a protocol results in a blacklist of a number f of a number of n nodes that exhibit Byzantine faults.

[0015] Other aspects and features of the present invention will become apparent to those of ordinary skill in the art upon review of the following description of specific embodiments of the invention in conjunction with the accompanying figures. [Brief description of the drawings]

[0016] Embodiments of the present invention will now be described, by way of example only, with reference to the accompanying drawings, in which:

[0017] [Figure 1] FIG. 1 illustrates an exemplary network environment in which configurable electrical devices supporting embodiments of the present invention may be deployed and operated in accordance with embodiments of the present invention.

[0018] [Diagram 2]2 illustrates an exemplary electronic device that supports communication into a network such as that shown in FIG. 1 and that supports an embodiment of the present invention.

[0019] [Diagram 3] 1 illustrates an exemplary algorithm that represents a utility for a node in a distributed ledger-based system according to an embodiment of the present invention.

[0020] [Figure 4] 1 illustrates an exemplary algorithm that represents a typical execution for a node in a distributed ledger-based system, according to one embodiment of the present invention.

[0021] [Diagram 5] 1 illustrates a schematic diagram of a high speed Byzantine fault tolerant messaging pattern for a distributed ledger implemented between nodes in a distributed ledger based system according to an embodiment of the present invention.

[0022] [Figure 6] 1 illustrates an exemplary algorithm illustrating a view change mode of a node in a distributed ledger-based system in accordance with an embodiment of the present invention.

[0023] [Figure 7] 4 illustrates an exemplary process flow of a protocol according to an embodiment of the present invention for a request sent from a client to a primary to perform an operation. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0024] The present invention is directed to distributed ledgers, and more particularly to methods and systems for providing fast Byzantine fault tolerant consensus among nodes supporting a distributed ledger.

[0025] The following description provides only representative embodiment(s) and is not intended to limit the scope, applicability, or configuration of the present disclosure. Rather, the following description of the embodiment(s) provides those skilled in the art with an enabling description for implementing one or more embodiments of the present invention. It should be understood that various changes can be made in the function and arrangement of elements without departing from the spirit and scope as set forth in the appended claims. Thus, an embodiment is an example or implementation of the present invention, and not the only implementation. The various appearances of "one embodiment," "an embodiment," or "some embodiments" do not necessarily all refer to the same embodiment. Although various features of the present invention may be described in the context of a single embodiment, the features may also be provided separately or in any suitable combination. Conversely, although the present invention may be described herein in the context of separate embodiments for clarity, the present invention may also be implemented in a single embodiment or any combination of embodiments.

[0026] References in this specification to "one embodiment," "an embodiment," "some embodiments," or "other embodiments" mean that a particular feature, structure, or characteristic described in connection with an embodiment is included in at least one embodiment of the present invention, but not necessarily in all embodiments. The phrases and terms used in this specification should not be construed as limiting, but are for descriptive purposes only. When a claim or specification refers to "a" or "an" element, it should be understood that such a reference should not be construed as indicating that there is only one of that element. When this specification states that a feature, structure, or characteristic of a component "may," "might," "can," or "could" be included, it should be understood that the particular component, feature, structure, or characteristic need not be included.

[0027] References to terms such as "left", "right", "upper", "lower", "front" and "rear" are intended to be used with reference to the orientation of particular features, structures or elements in the figures illustrating embodiments of the present invention. It will be apparent that such directional terms do not have a particular meaning with respect to the actual use of the device, since the device may be used in multiple orientations by one or more users.

[0028] References to the terms "including," "comprising," "consisting," and grammatical variations thereof do not exclude the addition of one or more components, features, steps, integers, or groups thereof, and such terms should not be construed as specifying components, features, steps, or integers. Similarly, the phrase "consisting essentially of" and grammatical variations thereof, when used herein, should not be construed as excluding additional components, steps, features, integers, or groups thereof, but rather, the additional features, integers, steps, components, or groups thereof do not materially alter the basic and novel characteristics of the claimed compositions, devices, or methods. When the specification or claims refer to an "additional" element, it does not exclude the presence of two or more of the additional elements.

[0029] As used herein and throughout this disclosure, "record" refers to, but is not limited to, information created, received, or maintained as evidence and as an asset by an organization or person in pursuit of a legal obligation or in the course of a business transaction.

[0030] As used herein and throughout this disclosure, "transaction record" refers to, but is not limited to, a record that documents a transaction.

[0031] As used herein and throughout this disclosure, a "ledger record" or "ledger records" refers to, but is not limited to, a record that includes one or more of the following: transaction record(s), hash value(s) of the transaction record(s), and reference(s) to the transaction record(s) recorded in one or more distributed ledgers (e.g., blockchains) using distributed ledger technology (DLT).

[0032] "Record system" or "record system" as used herein and throughout this disclosure refers to, but is not limited to, an information system that captures, manages, and provides access to records over time.

[0033] A "certificate" as used herein and throughout this disclosure refers, without limitation, to a set of claims made by an issuer.

[0034] A "verifiable certificate," as used herein and throughout this disclosure, refers to, but is not limited to, a tamper-evident certificate that has authorship that can be cryptographically verified.

[0035] "Issuer," as used herein and throughout this disclosure, refers, without limitation, to a role that an entity may assume by asserting claims about one or more subject matter, creating a verifiable certificate from those claims, and transmitting the verifiable certificate to a holder.

[0036] "Holder," as used herein and throughout this disclosure, refers to, without limitation, the role that an entity may play by possessing one or more verifiable certificates and generating presentations from them.

[0037] "Verifier," as used herein and throughout this disclosure, refers to, but is not limited to, an entity that verifies assertions about a given subject matter.

[0038] A "certification request," as used herein and throughout this disclosure, refers, without limitation, to a request for one or more verifiable certificates issued by one or more issuers and held by one or more holders.

[0039] As used herein and throughout this disclosure, "certificate presentation" refers, without limitation, to data derived from one or more verifiable certificates issued by one or more issuers that are shared with one or more verifiers.

[0040] "Attestation verification," as used herein and throughout this disclosure, refers, without limitation, to an evaluation of whether a verifiable certificate or verifiable presentation is an authentic and timely statement of its issuer or presenter, respectively.

[0041] A "wireless standard" as used herein and throughout this disclosure refers to, but is not limited to, a standard for transmitting signals and / or data through electromagnetic radiation, which may be optical, radio frequency (RF), or microwave, although typically RF wireless systems and technologies dominate. Wireless standards may be defined globally, nationally, or specific to an equipment manufacturer or set of equipment manufacturers. Current major wireless standards include, but are not limited to, IEEE 802.11, IEEE 802.15, IEEE 802.16, IEEE 802.20, UMTS, GSM 850, GSM 900, GSM 1800, GSM 1900, GPRS, ITU-R 5.138, ITU-R 5.150, ITU-R 5.280, IMT-1000, Bluetooth, Wi-Fi, Ultra-Wideband, and WiMAX. Some standards may be a collection of sub-standards, such as, but not limited to, IEEE 802.11, which may refer to IEEE 802.1a, IEEE 802.11b, IEEE 802.11g, or IEEE 802.11n, as well as other standards under the IEEE 802.11 umbrella.

[0042] A "wired standard" as used herein and throughout this disclosure generally refers to, but is not limited to, a standard for transmitting signals and / or data, either individually or in combination with other signals, over electrical cables. Such wired standards may include, but are not limited to, digital subscriber line (DSL), dial-up (which utilizes the public switched telephone network (PSTN) to establish a connection to an Internet service provider (ISP)), Data over Cable Service Interface Specification (DOCSIS), Ethernet, Gigabit Home Networking (G.hn), Integrated Services Digital Network (ISDN), Multimedia over Coaxial Alliance (MoCA), and Power Line Communications (PLC, where data is overlaid on AC / DC power). In some embodiments, a "wired standard" may refer to, but is not limited to, the use of optical cables and optical interfaces, such as, for example, in a passive optical network (PON).

[0043] As used herein, a "sensor" may refer to, but is not limited to, a transducer that provides an electrical output that is generated in response to a magnitude of a measurement and is selected from the group including, but not limited to, environmental sensors, medical sensors, biological sensors, chemical sensors, ambient environment sensors, position sensors, motion sensors, thermal sensors, infrared sensors, visible sensors, RFID sensors, and medical testing and diagnostic devices.

[0044] As used herein and throughout this disclosure, "portable electronic device" (PED) refers to wireless devices used for communication and other applications that require a battery or other independent form of energy for power, including, but not limited to, devices such as cellular phones, smartphones, personal digital assistants (PDAs), portable computers, pagers, portable multimedia players, portable game consoles, laptop computers, tablet computers, wearable devices, and e-readers.

[0045] As used herein and throughout this disclosure, "Fixed Electronic Device" (FED) refers to wireless and / or wired devices used for communications and other applications that require connection to a fixed interface for power, including, but not limited to, laptop computers, personal computers, computer servers, kiosks, game consoles, digital set-top boxes, analog set-top boxes, Internet-enabled appliances, Internet-enabled televisions, and multimedia players.

[0046] A "server," as used herein and throughout this disclosure, refers to one or more co-located and / or geographically distributed physical computers that perform one or more services as a host for other users, such as other computers, PEDs, FEDs, etc., to serve the client needs of these users, including, but not limited to, a database server, a file server, a mail server, a print server, a web server, a game server, or a virtual environment server.

[0047] As used herein, an "application" (generally referred to as an "app") may refer to, but is not limited to, a "software application," an element of a "software suite," a computer program designed to enable an individual to perform an activity, a computer program designed to enable an electronic device to perform an activity, and a computer program designed to communicate with local and / or remote electronic devices. Thus, an application is distinct from an operating system (which runs a computer), a utility (which performs maintenance or general-purpose tasks), and a programming tool (which creates computer programs). In general, in the following description of embodiments of the invention, an application is generally presented in terms of software that is permanently and / or temporarily installed on a PED and / or FED.

[0048] "Business" as used herein may refer to, but is not limited to, a provider of services and / or products to users, customers, or consumers. This includes, but is not limited to, retailers, stores, marketplaces, online marketplaces, manufacturers, online retailers, charities, utilities, and service providers. Such businesses may be directly owned and controlled by a company, or may be owned and operated by a franchisee under the direction and control of a franchisor.

[0049] A "service provider" as used herein may refer to, but is not limited to, a business and / or an individual and / or a group of individuals and / or a third party provider of services and / or products to a device with a microprocessor, including, but not limited to, a retailer, a store, a marketplace, an online marketplace, a manufacturer, an online retailer, a utility, a private label provider, and a service provider, where the services and / or products are marketed, sold, provided, and / or distributed by the business alone or in addition to the service provider.

[0050] As used herein, a "third party" or "third party provider" may refer to, but is not limited to, a business and / or individual and / or group of individuals and / or so-called "arm's length" providers of services and / or products to a device containing a microprocessor, where a consumer and / or customer engages a third party, but the actual service and / or product that they are interested in and / or purchase and / or receive is provided through the business and / or service provider.

[0051] A "user" as used herein may refer to, but is not limited to, an individual or a group of individuals. This includes, but is not limited to, individuals, employees of organizations and / or businesses, members of community organizations, members of charitable organizations, men and women. In its broadest sense, a user may further include, but is not limited to, software systems, mechanical systems, robotic systems, android systems, etc., that may be characterized by the ability to utilize one or more embodiments of the present invention. A user may also be associated with one or more of service providers, third party providers, businesses, social networks, social media, etc., through one or more accounts and / or profiles, via dashboards, web services, websites, software plug-ins, software applications, and graphical user interfaces.

[0052] A "wearable device" or "wearable sensor" refers to a small electronic device worn by a user, including under, in, with, or on clothing, and is part of a broader general class of wearable technology that includes, in contrast, "wearable computers," which are directed to general-purpose or specialized information technology and media developments. Such wearable devices and / or sensors may include, but are not limited to, smartphones, smart watches, e-textiles, smart shirts, activity trackers, smart glasses, environmental sensors, medical sensors, biological sensors, physiological sensors, chemical sensors, ambient environment sensors, position sensors, neural sensors, drug delivery systems, medical testing and diagnostic devices, and motion sensors.

[0053] Electronic content (also referred to as "content" or "digital content") as used herein may refer to, but is not limited to, any type of content that exists in the form of digital data, such as stored, transmitted, received, and / or transformed; generally, these steps are digital, although one or more of these steps may be analog. Forms of digital content include, but are not limited to, information that is digitally broadcast, streamed, or contained in separate files. In the narrower sense, types of digital content include popular media types such as, for example, MP3, JPG, AVI, TIFF, AAC, TXT, RTF, HTML, XHTML, PDF, XLS, SVG, WMA, MP4, FLV, and PPT, as well as others (see, for example, http: / / en.wikipedia.org / wiki / List_of_file_formats). In a broader approach, digital content can include any type of digital information, such as digitally updated weather forecasts, GPS maps, eBooks, photos, videos, Vines™, blog posts, Facebook™ posts, Twitter™ tweets, online TV, etc. Digital content can be any digital data that is generated, selected, created, modified, and / or transmitted in response to a user request, which can be, for example, a query, a search, a trigger, an alarm, and a message.

[0054] A "profile," as used herein and throughout this disclosure, refers to a computer and / or microprocessor readable data file that contains data regarding settings and / or restrictions for an adult device. Such profiles may be established by a manufacturer / supplier / provider of the device, service, etc., or they may be established by a user through a user interface for the device, service, or PED / FED in communication with the device, another device, server, or service provider, etc.

[0055] A "computer file" (generally known as a file) as used herein and throughout this disclosure refers to a computer resource for discretely recording data on a computer storage device, this data being electronic content. A file may be defined by one of the different types of computer files designed for different purposes. A file may be designed to store electronic content such as written messages, videos, computer programs, or a wide variety of other types of data. Some types of files can store multiple types of information at once. A file may be opened, read, modified, copied, and closed any number of times with one or more software applications. Typically, files are organized into a file system that can be used on many different types of storage devices utilizing different types of media, and this file system tracks where the file is located on the storage device(s) and allows user access. The format of a file is defined by its contents, as a file is simply a container for data, although on some platforms the format is usually indicated by its filename extension, which specifies rules regarding how the bytes must be organized and interpreted meaningfully. For example, the bytes of a plain text file are associated with either ASCII or UTF-8 characters, while the bytes of an image, video, and audio file are interpreted in other ways. Some file types also allocate a few bytes for metadata that allows the file to carry some basic information about itself.

[0056] Encryption, as used herein, may refer to a process of encoding a message or information so that only authorized parties can read it, including, but not limited to, symmetric key encryption through algorithms such as Twofish, Serpent, AES (Rijndael), Blowfish, CAST5, RC4, 3DES, and IDEA, as well as public key encryption through algorithms such as Diffie-Hellman, the Digital Signature Standard, the Digital Signature Algorithm, ElGamal, Elliptic Curve Technology, Password Authenticated Key Agreement Technology, the Paillier cryptosystem, the RSA encryption algorithm, the Cramer-Shoup cryptosystem, and the YAK authenticated key agreement protocol.

[0057] "Blockchain" (originally "blockchain") represents one embodiment of a cryptographic distributed ledger or an embodiment of DLT. Blockchain as used herein may refer, but is not limited to, a continuously growing list of records called blocks that are linked and secured using cryptography. Each block typically contains a cryptographic hash of one or more other blocks in the chain, a timestamp, and transaction data. By design, blockchain provides an open distributed ledger that is inherently resistant to data modification and can record transactions between two parties in an efficient, verifiable, and permanent manner. For use as a distributed ledger, blockchain is typically managed by a peer-to-peer network that collectively follows a protocol for inter-node communication and validates new blocks. Once recorded, data in any given block cannot be retroactively altered without altering all subsequent blocks in the chain, which would require the collusion of a majority of the network. Thus, blockchain exemplifies a distributed computing system that is secure by design and has high Byzantine fault tolerance. Thus, distributed consensus is achieved with blockchain making it suitable for recording events, medical records, and other record keeping activities such as identity management, financial transaction processing, provenance documentation, food traceability, voting, etc. In an embodiment of the invention, the cryptographic hash may also include a pointer (and possibly a hash) to the address of the next block in the chain.

[0058] As used herein, a "distributed ledger" may refer to, but is not limited to, a database that is consensus-shared and synchronized across one or more networks that span multiple sites, institutions, and / or geographies. It allows transactions to have public "witnesses," thereby making cyber attacks more difficult. Participants at each node of the network can access and own an identical copy of the record shared across the network. Furthermore, any changes or additions made to the ledger are reflected and copied to all participants quickly, typically within seconds or minutes. The basis of distributed ledger technology is the blockchain.

[0059] As used herein, "cryptographic currency" or "crypto currency" may refer, but is not limited to, a digital asset designed to function as a medium of exchange that uses cryptography to secure transactions, control the creation of additional units, and verify transfers of assets. Cryptocurrencies are a type of digital currency, alternative currency, and virtual currency. Cryptocurrencies use decentralized control, in contrast to centralized electronic money and central banking systems. The decentralized control of each cryptocurrency operates through a blockchain, a public transaction database that functions as a distributed ledger.

[0060] "Metadata" as used herein and throughout this disclosure refers to information stored as data that provides information about other data. There are many different types of metadata, including but not limited to descriptive metadata, structural metadata, administrative metadata, referential metadata, and statistical metadata. Descriptive metadata may describe resources for purposes such as discovery and identification, and may include elements such as, but not limited to, title, abstract, author, and keywords. Structural metadata relates to containers of data and indicates how compound objects are assembled, and may include, but is not limited to, how pages are ordered to form chapters, and typically describes types, versions, relationships, and other characteristics of digital materials. Administrative metadata may provide information used in managing resources, and may include, but is not limited to, how and when the resource was created, file type, technical information, and who has access to the resource. Referential metadata may describe the content and quality of the statistical data, and statistical metadata may also describe the process of collecting, processing, or generating the statistical data. Statistical metadata is sometimes referred to as process data.

[0061] As used herein and throughout this disclosure, "artificial intelligence systems" (hereinafter artificial intelligence AI) refers to machine intelligence or machine learning, as opposed to natural intelligence. AI can refer to analytical, human-inspired, or humanized artificial intelligence. AI can refer to the use of one or more machine learning algorithms and / or processes. AI may employ one or more of artificial networks, decision trees, support vector machines, Bayesian networks, and genetic algorithms. AI can use training models or federated learning.

[0062] A "Byzantine fault" or "Byzantine failure" (also known as interactive consistency, source congruency, or error avalanche) is a condition of a computer system, especially a distributed computing system, in which components can fail and there is incomplete information about whether the components have failed. In a Byzantine fault, a component such as a network, system, or device may appear to have failed or function inconsistently to a fault detection system and may present different symptoms or behaviors to different observers. Thus, it is difficult for other components to declare that another component has failed and shut it off, since they must first reach a consensus about which component failed first. Byzantine fault tolerance (BFT) is the reliability of a fault-tolerant computer system against such conditions.

[0063] In the following description, the term "blockchain" is used. To those skilled in the art, blockchain can define a specific embodiment of a cryptographic distributed ledger, or an embodiment of distributed ledger technology (DLT), such as that found in cryptocurrencies derived from Bitcoin, but the term is used generally to mean a growing list of records called blocks that are linked together using a cryptography, where each block contains a cryptographic hash of the previous block in the chain, a timestamp, and transaction data (e.g., represented as a Merkle tree). The timestamp proves that the transaction data existed when the block was published to enter its hash. Since each block contains information about its previous block, they form a chain, and each additional block reinforces its previous block. Thus, blockchains are generally considered to be resistant to alteration of data, since once recorded, the data in any given block cannot be retroactively changed without changing all subsequent blocks in the chain. It is within the general meaning of the term that it is used below.

[0064] Referring to FIG. 1, a network 100 is shown in which an embodiment of the present invention can be employed to support Fast Byzantine Fault Tolerant (BFT) Consensus for Blockchain (Fast-B4B) and therefore Fast-B4B Systems, Applications, and Platforms (Fast-B4B-SAP) in accordance with an embodiment of the present invention. As shown, first and second user groups 100A and 100B, respectively, interface to a telecommunications network 100. Within a representative communications architecture, a remote central switch 180 communicates with the rest of the communications service provider network via the network 100, which may include, for example, long-haul OC-48 / OC-192 backbone elements, an OC-48 wide area network (WAN), a passive optical network, and wireless links. The central switch 180 is connected to local, regional, and international switches (not shown for clarity) through the network 100, among which are first and second cellular APs 195A and 195B, respectively, which provide Wi-Fi cells for first and second user groups 100A and 100B, respectively. Also connected to the network 100 are first and second Wi-Fi nodes 110A and 110B, the latter of which are coupled to the network 100 through a router 105. The second Wi-Fi node 110B is associated with an enterprise 160 that includes other first and second user groups 100A and 100B. The second user group 100B may also be connected to the network 100 through wired interfaces, including but not limited to DSL, dial-up, DOCSIS, Ethernet, G.hn, ISDN, MoCA, PON, and power line communications (PLC), which may or may not be routed through a router such as the router 105.

[0065] Within the cell associated with the first AP 110A, a first group of users 100A may employ various PEDs, including, for example, a laptop computer 155, a portable game console 135, a tablet computer 140, a smartphone 150, a cellular telephone 145, and a portable multimedia player 130. Within the cell associated with the second AP 110B, there is a second group of users 100B, who may employ various FEDs, including, for example, a game console 125, a personal computer 115, and a wireless / Internet-enabled television 120, as well as a router 105. The first cellular AP 195A and the second cellular AP 195B each provide, for example, cellular GSM (Global System for Mobile Communications) telephone service, as well as 3G and 4G evolved services with enhanced data transport support. The second cellular AP 195B provides coverage to the first group of users 100A and the second group of users 100B in an exemplary embodiment. Alternatively, the first and second user groups 100A and 100B may access the network 100 through multiple APs (not shown for clarity) that are geographically distinct and geographically distributed by one or more network operators. A first cellular AP 195A as shown provides coverage to the first user group 100A and the environment 170 that includes the second user group 100B as well as the first user group 100A. Thus, the first and second user groups 100A and 100B may communicate with the network 100 via one or more wireless communication standards, such as, for example, IEEE 802.11, IEEE 802.15, IEEE 802.16, IEEE 802.20, UMTS, GSM 850, GSM 900, GSM 1800, GSM 1900, GPRS, ITU-R 5.138, ITU-R 5.150, ITU-R 5.280, and IMT-1000, according to their particular communication interfaces.As will be appreciated by those skilled in the art, many portable and fixed electronic devices can simultaneously support multiple wireless protocols, allowing users to use services such as telephone, SMS, Wi-Fi / WiMAX data transmission, VOIP and Internet access, etc. Thus, the portable electronic devices in the first user group 100A can form associations in an ad-hoc manner via any of the standards such as IEEE 802.15 and Bluetooth.

[0066] Also connected to network 100 are social networks (SOCNETS) 165, first and second service providers 170A and 170B, respectively, first and second third party service providers 170C and 170D, respectively, and a user 170E. Also connected to network 100 are first and second businesses 175A and 175B, respectively, first and second organizations 175C and 175D, respectively, and a government agency 175E. The first and second servers 190A and 190B may also host a number of services related to Fast Byzantine Fault Tolerant (BFT) Consensus for Blockchain (Fast-B4B) systems, applications and providers (Fast-B4B-SAP) according to embodiments of the present invention, providers of SOCNET or social media (SOME) utilizing Fast-B4B-SAP functionality, providers of SOCNET and / or SOME not utilizing Fast-B4B-SAP functionality, providers of services to PEDs and / or FEDs, providers of one or more aspects of wired and / or wireless communication, businesses 160 utilizing Fast-B4B-SAP functionality, license databases, content databases, image databases, content libraries, customer databases, websites, and software applications for download to or access by FEDs and / or PEDs utilizing and / or hosting Fast-B4B-SAP functionality. The first and second primary content servers 190A and 190B may also host other Internet services, such as engines, financial services, third party applications, and other Internet-based services. Other servers, such as server 190C, may handle dedicated functions for embodiments of the present invention, and these servers are not publicly accessible to users.

[0067] Also shown in Figure 1 is an electronic device (ED) 1000 according to an embodiment of the present invention, as described and shown below with respect to Figure 2. As shown in Figure 1, the ED 1000 communicates directly with the network 100. The ED 1000 may communicate to the network 100 through one or more wireless or wired interfaces, including those selected from the group including, for example, IEEE 802.11, IEEE 802.15, IEEE 802.16, IEEE 802.20, UMTS, GSM 850, GSM 900, GSM 1800, GSM 1900, GPRS, ITU-R 5.138, ITU-R 5.150, ITU-R 5.280, IMT-1000, DSL, dial-up, DOCSIS, Ethernet, G.hn, ISDN, MoCA, PON, and power line communication (PLC).

[0068] Thus, a user may, for example, utilize a PED and / or FED within the enterprise 160 and access one of the first or second primary content servers 190A and 190B, respectively, to perform operations such as accessing / downloading an application providing FAST-B4B-SAP features according to an embodiment of the present invention, running an already installed application providing FAST-B4B-SAP features, running a web-based application providing FAST-B4B-SAP features, or accessing content. Similarly, a CONCUS may perform such actions or other actions utilizing an embodiment of the present invention utilizing a PED or FED within the first and second user groups 100A and 100B, respectively, via one of the first and second cellular APs 195A and 195B, respectively, and the first Wi-Fi node 110A. It will also be apparent that a CONCUS may communicate via telephone, fax, e-mail, SMS, social media, etc., by utilizing the network 100.

[0069] In an embodiment of the present invention, Fast Byzantine Fault Tolerant (BFT) Consensus for Blockchain (Fast-B4B) may be triggered through a user performing an action to access or generate a transaction, which is then batched into a block for a new or existing blockchain. Fast-B4B uses a set of nodes that provide functionality for a blockchain, i.e., a distributed ledger. Thus, a user may perform an action that has a blockchain associated with it, or a node that processes one or more blockchain processes may be within the scope of an embodiment of the present invention, including but not limited to ED 1000, server 190C, first server 190A, second server 190B, laptop computer 155, portable game console 135, tablet computer 140, smartphone 150, mobile phone 145, portable multimedia player 130, game console 125, personal computer 115, wireless / Internet enabled television 120, router 105, first and second Wi-Fi nodes 110A and 110B, or central exchange 180. Essentially, any PED or FED permanently or temporarily connected to network 100 and other nodes therein may be a permanent or temporary node.

[0070] The nodes may or may not be associated with one or more businesses 160 and social networks (SOCNETS) 165, service providers, such as first and second service providers 170A and 170B, respectively, third party service providers, such as first and second third party service providers 170C and 170D, respectively, users, such as user 170E, businesses, such as first and second businesses 175A and 175B, respectively, organizations, such as first and second organizations 175C and 175D, respectively, and government agencies, such as government agency 175E.

[0071] 2, an electronic device 204 and a network access point 207 are shown supporting Fast-B4B-SAP functionality according to an embodiment of the present invention. The electronic device 204 may be, for example, a PED and / or FED and may include additional elements beyond those described and illustrated, or may include a subset of these elements. A minimum set of elements may be considered to support data processing, instruction and / or data storage, and a communication interface to the network 100. Also shown within the electronic device 204 is a protocol architecture as part of a simplified functional diagram of a system 200 including an electronic device 204, such as a smartphone 155, an access point (AP) 206, such as a first AP 110, and one or more network devices 207, such as a communication server, a streaming media server, and a router, for example, a first server 190A and a second server 190B, respectively. The network device 207 may be coupled to the AP 206 via any combination of network, wired, wireless, and / or optical communication links as described above with respect to FIG. 1, as well as directly as shown. The network device 207 is coupled to the network 100 and social networks (SOCNETS) 165 therein, first and second service providers 170A and 170B, respectively, first and second third party service providers 170C and 170D, respectively, a user 170E, first and second businesses 175A and 175B, respectively, first and second organizations 175C and 175D, respectively, and a government agency 175E.

[0072] The electronic device 204 includes one or more processors 210 and a memory 212 coupled to the processor(s) 210. The AP 206 also includes one or more processors 211 and a memory 213 coupled to the processor(s) 210. A non-exhaustive list of examples of any of the processors 210 and 211 includes a central processing unit (CPU), a digital signal processor (DSP), a reduced instruction set computer (RISC), a complex instruction set computer (CISC), and the like. Furthermore, any of the processors 210 and 211 may be part of an application specific integrated circuit (ASIC) or may be part of an application specific standard product (ASSP). A non-exhaustive list of examples of the memory 212 and 213 includes any combination of semiconductor devices such as registers, latches, ROM, EEPROM, flash memory devices, non-volatile random access memory devices (NVRAM), SDRAM, DRAM, double data rate (DDR) memory devices, SRAM, universal serial bus (USB) removable memory, and the like.

[0073] The electronic device 204 may include audio input elements 214, e.g., a microphone, and audio output elements 216, e.g., a speaker, coupled to any of the processors 210. The electronic device 204 may include video input elements 218, e.g., a video camera or camera, and video output elements 220, e.g., an LCD display, coupled to any of the processors 210. The electronic device 204 also includes a keyboard 215 and a touchpad 217, which may be, for example, a physical keyboard and touchpad that allow a user to input content or select functions within one or more applications 222. Alternatively, the keyboard 215 and the touchpad 217 may be predefined areas of touch-sensitive elements that form part of a display within the electronic device 204. The one or more applications 222 are typically stored within the memory 212 and executable by any combination of the processors 210. The electronic device 204 also includes an accelerometer 260 that provides three-dimensional motion input to the process 210, and a GPS 262 that provides geographic location information to the processor 210.

[0074] The electronic device 204 includes a protocol stack 224 and the AP 206 includes a communication stack 225. Within the system 200, the protocol stack 224 is shown as an IEEE 802.11 protocol stack, but may alternatively utilize other protocol stacks, such as, for example, the Internet Engineering Task Force (IETF) multimedia protocol stack. Similarly, the AP stack 225 utilizes a protocol stack, but has not been expanded for clarity. The elements of the protocol stack 224 and the AP stack 225 may be implemented in any combination of software, firmware, and / or hardware. The protocol stack 224 includes an IEEE 802.11 compatible PHY module 226 coupled to one or more front-end Tx / Rx & antennas 228 and an IEEE 802.2 compatible MAC module 230 coupled to an IEEE 802.11 compatible LLC module 232. The protocol stack 224 includes a network layer IP module 234 , a transport layer Internet Protocol (UDP) module 236 , and a transport layer Transmission Control Protocol (TCP) module 238 .

[0075] The protocol stack 224 also includes a session layer real-time transport protocol (RTP) module 240, a session announcement protocol (SAP) module 242, a session initiation protocol (SIP) module 244, and a real-time streaming protocol (RTSP) module 246. The protocol stack 224 includes a presentation layer media negotiation module 248, a call control module 250, one or more audio codecs 252, and one or more video codecs 254. The application 222 may be capable of creating, maintaining, and / or terminating a communication session with any of the devices 207 via the AP 206. Typically, the application 222 may activate any of the SAP, SIP, RTSP, media negotiation, and call control modules for that purpose. Typically, information may propagate from the SAP, SIP, RTSP, media negotiation, and call control modules to the PHY module 226 via the TCP module 238, the IP module 234, the LLC module 232, and the MAC module 230.

[0076] It will be apparent to one skilled in the art that elements of the electronic device 204 may also be implemented within the AP 206, including, but not limited to, one or more elements of the protocol stack 224, including, for example, an IEEE 802.2 compatible PHY module, an IEEE 802.11 compatible MAC module, and an IEEE 802.11 compatible LLC module 232. The AP 206 may further include a network layer IP module, a transport layer User Datagram Protocol (UDP) module, a transport layer Transmission Control Protocol (TCP) module, as well as a session layer Real-time Transport Protocol (RTP) module, a Session Announcement Protocol (SAP) module, a Session Initiation Protocol (SIP) module, and a Real-time Streaming Protocol (RTSP) module, a media negotiation module, and a call control module. The portable and fixed electronic devices represented by electronic device 204 may include one or more additional wireless or wired interfaces in addition to the illustrated IEEE 802.11 interface, which may be selected from the group including IEEE 802.15, IEEE 802.16, IEEE 802.20, UMTS, GSM 850, GSM 900, GSM 1800, GSM 1900, GPRS, ITU-R 5.138, ITU-R 5.150, ITU-R 5.280, IMT-1000, DSL, dial-up, DOCSIS, Ethernet, G.hn, ISDN, MoCA, PON, and power line communications (PLC).

[0077] Also shown in FIG. 2 is an electronic device (ED) 1000 according to an embodiment of the present invention, as described and illustrated below with respect to FIG. 3-FIG. 6, respectively. As shown in FIG. 2, the ED 1000 can communicate directly with the network 100. Other EDs 1000 can communicate with the network device 207, the access point 206, and the electronic device 204. Some EDs 1000 can communicate directly with other EDs 1000. In FIG. 2, the EDs 1000 coupled to the network 100 and the network device 207 communicate via a wired interface. The EDs 1000 coupled to the access point 206 and the electronic device 204 communicate via a wireless interface. Each ED 1000 can communicate with another electronic device, e.g., the access point 206, the electronic device 204, and the network device 207, or a network, e.g., the network 100. Each ED 1000 may support one or more wireless or wired interfaces, including, for example, those selected from the group including IEEE 802.11, IEEE 802.15, IEEE 802.16, IEEE 802.20, UMTS, GSM 850, GSM 900, GSM 1800, GSM 1900, GPRS, ITU-R 5.138, ITU-R 5.150, ITU-R 5.280, IMT-1000, DSL, dial-up, DOCSIS, Ethernet, G.hn, ISDN, MoCA, PON, and power line communications (PLC).

[0078] Thus, FIG. 2 illustrates an electronic device 204, such as a PED, where one or more parties, including but not limited to a single user, multiple users, a single business, multiple businesses, a third party provider, a third party provider, a product provider, a product provider, a financial registry, a financial registry, a financial provider, and a financial provider, can use the electronic device to engage in one or more financial transactions related to activities including but not limited to e-business, P2P, C2B, B2B, C2C, B2G, C2G, P2D, and D2D over the network 100 or within either an access point 206 or a network device 207, and the transaction details are then coupled to the network 100 and stored in a remote server.

[0079] Optionally, rather than a wired and / or wireless communication interface, the device may utilize other communication interfaces, such as an optical communication interface and / or a satellite communication interface, which may support Ethernet, Gigabit Ethernet, SONET, Synchronous Digital Hierarchy (SDH), etc.

[0080] In the prior art, blockchain or distributed ledger consensus (hereinafter simply consensus) is provided with a protocol that can tolerate crash faults or Byzantine faults (i.e., any fault). A crash fault or crash failure is typically defined as a case where a system suffers an omission failure once and then remains unresponsive. A Byzantine fault is typically defined as any fault that occurs during the execution of an algorithm or process by a distributed system.

[0081] As mentioned earlier, low latency is one of the desirable properties for a consensus protocol. One factor that defines the latency of a consensus protocol is the number of steps that the protocol requires. In the prior art, fast crash-tolerant protocols have been proposed that can achieve consensus via communication requiring only one round trip (RTW) or two communication steps (i.e., a communication step to one or more nodes and a communication step from one or more nodes). However, these require certain conditions to be satisfied, such as, for example, no dependencies between transactions, which is itself limiting when considering many of the current and anticipated applications of blockchain.

[0082] On the other hand, a Byzantine fault is any fault that includes not only crash faults / crash failures but also more serious faults including but not limited to software bugs, malicious attacks, and collusion between malicious processors (nodes). Byzantine fault tolerant protocols in the art achieve fault tolerance by replicating state, also referred to as state machine replication (SMR). Within blockchain, state machine replication is a method for implementing fault tolerant services by replicating nodes and coordinating interactions with node replicas. Byzantine SMR in the art seeks to increase throughput by reducing the latency of consensus instances that they execute sequentially, or by reducing the number of replicas that send messages to others, in order to reduce network usage. Unfortunately, the former approach utilizes resources in bursts, whereas the latter requires a CPU-intensive authentication mechanism.

[0083] In either use case, the underlying BFT protocol must remain efficient. More specifically, the protocol response time must remain fast to help client requests be executed faster and responses returned to clients faster, thus significantly improving the client experience.

[0084] Therefore, within a BFT-based consensus protocol, one of the key aspects that affects the protocol latency is the number of communication steps. This becomes especially important when the protocol is operating within a wide area network (WAN) environment, because the latency of each communication step can be several orders of magnitude higher in a WAN than if the consensus protocol is operating only within a local area network (LAN).

[0085] Generally, partially synchronous Byzantine Fault Tolerant (BFT) based consensus protocols operate in three or more communication steps during normal execution or in the absence of failures. Therefore, the inventors have established a method to improve the normal execution latency since the worst-case latency of partially synchronous BFT consensus protocols cannot be bounded. Therefore, the inventors have established a BFT-based consensus protocol that operates in only two communication steps, called fast BFT consensus protocol, which improves on the prior art.

[0086] Fast BFT protocols are known for their techniques that can reach consensus in two communication steps. For example, Kursawe, in "Optimistic byzantine agreement" (21st IEEE Symposium on Reliable Distributed Systems, 2002, pp. 262-267), achieves consensus only if all 3f+1 nodes in the network (where f is an upper bound on the number of Byzantine nodes) are honest. Thus, these protocols lack resilience to Byzantine faults. Martin et al., in "Fast byzantine consensus" (IEEE Trans. Dependable Secure. Comput., Vol 3(3), 2006, pp. 202-215), also achieve consensus in two communication steps, but the number of Byzantine faults that can be tolerated in the worst case is small, n=5f+1 (i.e., the upper bound on the number of Byzantine nodes, f=(n-1) / 5). Abraham et al. slightly improve on Martin in "Good-case latency of byzantine broadcast: a complete categorization" (ACM Symposium on Principles of Distributed Computing, 2021, pp. 331-341), where Byzantine consensus can be achieved in two communication steps with n = 5f-1 (i.e., upper bound f = (n + 1) / 5). Practical Byzantine Fault Tolerance with Provisional Execution (PBFT) has been reported by M. Castro ("Practical Byzantine Fault Tolerance", Jan 2001, Ph.D. Thesis, Massachusetts Institute of Technology), which can achieve consensus in two communication steps but provides relaxed safety guarantees.In protocols with relaxed safety guarantees, a request is durably committed only if at least f+1 honest nodes commit it (compared to 1 honest node during strong safety). In PBFT with provisional execution, the execution of a request can be invalidated even if the leader (primary) is non-malicious (due to the relaxed safety guarantee). Furthermore, PBFT with provisional execution suffers from an expensive view change protocol like the original PBFT.

[0087] A protocol is considered to provide relaxed security in the presence of Byzantine faults if f+1 honest / honest nodes commit blocks in sequence s and no other blocks are committed in sequence s. A protocol provides strong security in the presence of Byzantine faults if a single honest / honest node commits a block in sequence s and then no other blocks are committed in sequence s.

[0088] In "Revisiting optimal resilience of fast Byzantine consensus" (ACM Symposium on Principles of Distributed Computing, 2021, pp. 343-353), Kuznetsov et al. consider the optimal resilience of fast Byzantine consensus and present a Byzantine fault bound (maximum number of Byzantine faults tolerated) of f = (n-1) / 5 for fast Byzantine protocols. In contrast, in "Efficient byzantine fault-tolerance" (IEEE Trans. Computer, Vol. 62, No. 1, 2013, pp. 16-30), Veronese et al.'s "MinBFT" requires users of trusted hardware, a trusted execution environment (TEE), to prevent equalization attacks. Although TEEs are considered secure, recent studies have raised legitimate concerns about the security of TEEs by identifying multiple vulnerabilities. In contrast, we propose a fast BFT-based consensus protocol, termed "fast B4B", that can achieve consensus during normal execution with n=3f+1 (i.e., f=(n-1) / 3). This fast B4B protocol therefore tolerates more maximum number of Byzantine faults than prior art fast BFT protocols, and within the scope of the present invention, the tight upper bound on resilience (number of tolerated faults) has been improved to (f=n-1 / 3), resulting in increased resilience. Furthermore, the inventive fast B4B protocol does not require the use of trusted hardware, e.g., TEE. Fast B4B also guarantees strong security when a bona fide primary is replaced. This prevents invalidating blocks from a bona fide primary that is replaced (unlike PBFT with provisional execution). Furthermore, the cost of invalidating blocks committed by less than f+1 nodes (relaxed security) is high when the primary is Byzantine. However, a Byzantine primary can, for a limited number of times, invalidate the most recent blocks committed by at most f honest nodes (by paying a higher cost each time).Furthermore, FastB4B employs efficient view changes to make primary replacement faster.

[0089] As a tradeoff for its low latency, VBFT guarantees relaxed safety (for a limited number of times) for blocks proposed by a Byzantine primary. A Byzantine primary can invalidate its latest block (when it is replaced) during a view change if the block was committed by less than f+1 honest nodes. But in practice, this tradeoff does not harm the protocol security. First, invalidating a block from a Byzantine primary (by a Byzantine primary) does not degrade the chain quality. Second, these invalidated transactions are not considered committed by clients. Hence, there is no double spending.

[0090] Chain quality can be defined as the number of blocks added by honest primaries divided by the number of blocks added by all primaries, including malicious primaries. In double-spending, a request is considered committed by a client and then invalidated.

[0091] As mentioned, Fast B4B employs efficient view changes. Revocation is only possible if the primary node enforces equalization, i.e., it proposes multiple requests for the same sequence. Since equalization attacks can be easily detected, the culprit primaries can be easily blacklisted. Thus, after blacklisting at most f Byzantine primaries, no Byzantine nodes are left. This means that no equalization will occur afterwards.

[0092] Although the high speed B4B protocol herein is presented within the context of blockchain and distributed ledgers, the high speed B4B consensus protocol of the present invention can be adapted for other use cases. The high speed B4B protocol exhibits the following properties: Optimal latency during normal protocol execution Strong security guarantees for bona fide primary / leaders Optimal resilience to Byzantine faults Practical throughput comparable to state-of-the-art consensus protocols Simple design

[0093] Background: In what is known as the PBFT consensus protocol, Castro et al., "Practical Byzantine fault tolerance" (Proc. Third Symposium on Operating Systems Design and Implementation, 1999, pp. 173-186), the primary node broadcasts a proposal. There are then two additional rounds of broadcasting before consensus is reached (i.e., an overall process involving three communication steps). The first round of broadcasting is to agree on the request order. Once the nodes agree on the sequence of requests, the requests are assigned the same sequence even if the primary node is replaced (referred to as a view change). The second round uses broadcasting to agree on whether to commit or execute the requests. The two broadcasts are used to provide a guarantee that if at least one node commits a request, after recovering from the view change, all other nodes will commit the same request. This is due to the fact that if a single node has completed the second round of broadcasting (and thus committed a request), at least two-thirds of the other nodes have completed the first round of broadcasting. Thus, after a view change, these two-thirds of the nodes ensure that requests committed by at least a single node are proposed again in the same sequence by the next primary node (primary). This means that the first round of broadcasting is only necessary for the presence of a failure resulting in a view change. This additional round during normal protocol operation can therefore be eliminated. However, if the first round is eliminated, this means that agreement on the order and the commit occurs in a single round. This is acceptable during normal protocol execution. However, for at most f well-intentioned nodes that committed requests b during a view change, there is no guarantee that the requests will be committed in the same sequence when the new primary takes charge.To avoid this, we introduce a recovery phase at the end of the view change to recover requests b that have been committed by at most f nodes. In this approach, the new primary can propose the next request to extend b.

[0094] However, there is also the problem of equalization by Byzantine primaries. If a Byzantine primary proposes two equalization proposals b and b', and one of them is committed by at most f honest nodes, then during a view change the honest nodes cannot agree on the latest committed request to be extended by the new primary. Thus, the protocol loses what is called its liveness and stalls indefinitely. If the protocol chooses to extend one of the equalization requests (b or b'), the safety of the protocol cannot be guaranteed. For example, if request b is committed by at most f nodes and request b' is chosen (e.g., randomly) to be extended, at most f honest nodes must revoke request b.

[0095] However, if a request b is committed by at least f+1 honest nodes, it cannot be invalidated by equalization. Thus, Fast B4B allows for equalization and revocation of a request temporarily (when the request is committed by at most f nodes) before the Byzantine is blacklisted, but avoids double consumption. The client considers the request to be successfully committed by the network only if it receives 2f+1 responses from distinct nodes and verifies that the request is committed. In this case, at least f+1 honest nodes out of the 2f+1 nodes have committed the request. We have shown that once the client considers the request committed (at least f+1 honest nodes have committed the request), revocation of the request is not possible. Furthermore, to avoid future equalization, Fast B4B blacklists the equalization primary. Thus, after blacklisting at most f Byzantine nodes, no equalization occurs. Thus, if the request is committed by at least one node after that, it is no longer invalidated.

[0096] Blockchain Use Cases: Consensus mechanisms are an integral part of blockchain technology. In a blockchain, it is desirable to change primaries (proposers) periodically to ensure that all primaries have an equal opportunity to propose. Furthermore, frequent replacement of primary nodes reduces the time period that an attacker can use to target primaries in a denial-of-service attack. Therefore, the protocol should have an efficient view change mechanism. Achieving strong safety guarantees while replacing bona fide primaries is also an important feature. This means that a bona fide primary's proposal cannot be invalidated if it has been committed by at least one bona fide node. Unlike protocols with relaxed safety (e.g., PBFT with provisional execution), Byzantine nodes in fast B4B cannot invalidate a bona fide primary's proposal (committed by at least one bona fide node) during a view change. This approach prevents degradation of chain quality.

[0097] Chain quality can be defined as the number of blocks added by honest primaries divided by the number of blocks added by all primaries, including malicious primaries. For example, if a proposal (block / request) b from an honest primary is committed by less than f+1 honest nodes, during a view change, the next primary may receive a history of 2f+1 nodes that have not committed the latest proposal b. Thus, the next primary proposes another proposal b´ that invalidates b. In this way, the chain of committed (executed) blocks / requests will mostly contain requests from malicious primaries. This reduces the quality of the chain. This revocation of honest blocks / requests is not possible in fast B4B. But it is also possible to do it temporarily within PBFT.

[0098] Definition and Model: Our fast B4B protocol operates under the Byzantine fault model. Fast B4B can tolerate at most f Byzantine nodes, where the total number of nodes in the network is n, where n=3f+1. Nodes that follow the fast B4B protocol are called correct or honest nodes.

[0099] Nodes are assumed to be unable to break the encryption, signatures, and collision-resistant hashes. Furthermore, we assume that all messages exchanged between nodes are signed.

[0100] To avoid what is called the FLP-impossibility result (see M. Fischer et al., "Impossibility of distributed consensus with one faulty process," J. ACM, Vol. 32, No. 2, pp. 374-382, 1985), the fast B4B protocol assumes a partial synchronization model between nodes (see, for example, Dwork et al., "Consensus in the presence of partial synchrony," J. ACM, Vol. 35, No. 2, pp. 288-323, 1988), with a fixed but unknown upper bound on message delay. The period during which blocks are generated is called an epoch. Each node maintains a timer. If an epoch does not complete within a certain period (called the timeout period), the node times out and triggers a change process (i.e., a change of primary). The node then doubles the timeout value to give the next primary a sufficient chance to drive the consensus. As a state machine replicating service, the fast B4B protocol must satisfy the following properties:

[0101] Definition 1 (Relaxed Safety). A protocol is R-safe against all Byzantine faults if the statement holds that in the presence of f Byzantine nodes, if 2f+1 nodes or f+1 honest (bona fide) nodes commit a block in sequence (blockchain height) s, then no other blocks are committed in sequence s.

[0102] Definition 2 (Strong Security). A protocol is considered S-safe in the presence of f Byzantine nodes such that if a single correct node commits a block in sequence (blockchain height) s, then no other blocks are committed to sequence s.

[0103] Definition 3 (Liveness). A protocol is live if it guarantees progress in the presence of at most f Byzantine nodes.

[0104] Views and view numbers. A view determines which node is responsible (primary). A view is associated with a monotonically increasing number called the view number. Nodes use a deterministic function to map view numbers to node IDs. In other words, the view number determines the primary for a particular view.

[0105] Signature Aggregation. The fast B4B protocol according to an embodiment of the present invention uses signature aggregation, which can aggregate signatures from nodes into a single aggregate signature of constant size. Upon receiving messages (M1, M2, ..., My, where 2f+1 ≤ y ≤ n), each signature (σ1, σ2, ..., σ y ), and the primary generates an aggregate signature (σ←AggSign({Mi,σi} i∈N )). The aggregated signature is made up of messages M1, M2, …, My (2f+1 ≤ y ≤ n), aggregated signatures σ, and public keys PK1, PK2, …, PK ycan be verified by a given replica. Signature aggregation has been used before in BFT-based protocols. Any other signature scheme can be used where the identities of the nodes are known.

[0106] Block and blockchain requests are also called transactions. Transactions are batched into block data structures. This optimization improves throughput because the network decides on blocks instead of single transactions. Each block holds the hash of the previous block as a pointer to it. Thus building a chain of blocks called the blockchain.

[0107] Quorum Certificates (QCs) and Aggregated QCs. A Quorum Certificate (QC) is a collection of 2f+1 messages of a particular type from different nodes. For example, the collection of at least 2f+1 votes from distinct nodes for a block is called a QC. b A block is certified when its QC is received. Similarly, a collection of 2f+1 view messages forms a QC for a view change, or QCv. An aggregated QC, or AggQC, is a set of 2f+1 QCs v If b is the latest committed block, or QCb is the QC with the highest view in AggQC, then QC b is called high QC.

[0108] Fast B4B Protocol: The fast B4B protocol according to an embodiment of the present invention operates in two modes: normal mode and view change mode. The fast B4B protocol operates in normal mode where blocks are added to the chain until a failure is encountered. To recover from the failure, the fast B4B protocol switches to view change mode. Once the view change is successfully completed, fast B4B switches back to normal mode again. Referring to FIG. 3, an algorithm 1 is shown that presents an example utility of node i.

[0109] Normal mode of the fast B4B protocol. The message pattern during normal mode is shown in Figure 5. The primary node receives a request / transaction from a client. Client c sends its signed transaction<REQUEST,o,t,c> to the primary. In the transaction field, o is the operation requested by the client, and t is a timestamp (where the primary uses t to order requests from client c).

[0110] The primary node constructs the block (also called the proposal / pre-preparation message). <PRE-PREPARE,v,s,h,parent,QC nr , cmd> contains the view number v, the block sequence (blockchain height) s, the block hash h, the parent block hash parent, and the command cmd to be executed. nr is the QC of negative acknowledgments. After a view change, before proposing the first block, the new primary may want to ensure that there are blocks committed by at most f nodes. If there are no such blocks, the primary collects 2f+1 negative acknowledgments nr and QC nr Therefore, after the view change, the QC nr A field can only be used once. Further details are presented in the View Changes subsection below.

[0111] The primary is the tuple<v,s,h,parent> Then, the primary node proposes the proposal to all nodes via broadcast during the pre-preparation phase (see lines 15-19 of Algorithm 2 in Figure 4). Upon receiving the proposal, node i verifies the primary signature and the message format. Then, each node performs a safety check via the SafetyCheck() predicate. The SafetyCheck() predicate accepts two parameters including the received block b and highQC (the latest QC built from the 2f+1 votes received for the previous block). In the absence of failures, the SafetyCheck() predicate ensures that the proposal extends the latest committed block. This means that if the sequence of the latest committed block b´ is s (the block has highQC), then the sequence of the received block b must be s+1. If bs>b´.s+1, it means that node i is missing one or more committed blocks or the block proposal has an invalid sequence. In case of missing blocks, the node downloads the missing blocks and their respective QCs. In case of an invalid block sequence, node i can send the metadata of block b' (with the invalid sequence) as a proof to the network to trigger a view change.

[0112] In the case of a failure or view change, the SafetyCheck() predicate ensures that any uncommitted blocks seen by at least f+1 honest nodes are re-proposed for the same sequence (see below for further details). If the safety check succeeds, node i declares tuple<Vote,s,h,parent> The vote signed above<e,v,s,h,parent> (See Algorithm 2, lines 29 to 31 in Figure 4).

[0113] Upon receiving 2f+1 votes for block b, each node commits the block (commit phase). Each node also builds a QC from the votes it received for block b. This QC will be used as a proof of commit during view changes or to provide a proof of commit required by applications running on top of the fast B4B protocol. Each node that commits a block also sends a response message to the clients whose transactions are included in the block (see lines 32-35 of Algorithm 2 in Figure 4). A client considers its request / transaction committed if it receives 2f+1 distinct response messages. Similarly, upon receiving 2f+1 votes, a primary commits a block and proposes the next block in its queue.

[0114] If client c does not receive a response message within a certain interval, the client broadcasts its request to all nodes. Upon receiving the request, each node sends a response message if the request is committed. If it has not been proposed by the primary, the node forwards the request to the primary. If the primary still does not propose a block within the timeout period, each node broadcasts a VIEW-CHANGE message to replace the primary. Similarly, if the block is not committed within the timeout period, the primary sends an invalidation message or performs an equalization and the node triggers a view-change process, which results in replacing the failed primary.

[0115] View Change: In BFT-based protocols, view changes are used to replace a failed primary with a new primary. Nodes use a deterministic function to map view numbers to primary IDs. A primary can be selected by different means, including but not limited to using a round-robin process or random selection.

[0116] In addition to selecting a new primary, a view change also involves synchronizing information between nodes. More specifically, the new primary needs to determine the sequence number that its first request will be proposed to use. The block proposed with the new sequence number immediately after the view change must extend the latest block committed by at least one bona fide node (S-safety). In the fast B4B protocol of the present invention, the view change is different from the view change in the conventional BFT-based protocols known in the art. In the fast B4B protocol of the present invention, there are two ways to extend the latest committed block. If the latest proposed block is committed by more than f bona fide nodes, the fast B4B view change is similar to the view change in the BFT consensus protocols known in the art. However, if the latest proposed block is committed by at most f bona fide nodes or is not committed by any node, the fast B4B protocol uses an additional data acquisition phase (two communication steps) to deal with this case. It should be noted that by piggybacking the data acquisition phase with the view change message, fast B4B does not undergo any additional communication steps during the view change.

[0117] Furthermore, if at most f honest nodes have committed blocks, then equalization by the Byzantine primary may result in the revocation of the last committed block during the view change. Therefore, to address this, our fast B4B process blacklists the Byzantine primary after each revocation. In this way, after blacklisting f nodes, the fast B4B protocol becomes S-safe. Furthermore, as stated, this revocation does not impact clients and does not result in double spend.

[0118] If a node does not receive a message from the primary, or if a command is not executed within a certain interval, the node sends a VIEW-CHANGE message.<VIEW-CHANGE,v+1,qc,β,⊥,i> where qc is the QC of the latest committed block, while β is the header of the latest uncommitted block that node i voted for. If a node receives a malicious proof from a primary, e.g., multiple proposals for the same sequence, invalid messages, etc., it can also include that proof in the VIEW-CHANGE message (V=<VIEW-CHANGE,v+1,qc,β,proof,i> (See Algorithm 2, lines 37-39 in Figure 4.) When the new primary receives 2f+1 VIEW-CHANGE messages (which can include itself), it sends a NEW-VIEW message.<NEW-VIEW,AggQC,v+1> Here, AggQC is a QC constructed from 2f+1 VIEW-CHANGE messages. The new primary then broadcasts a NEW-VIEW message to all nodes (see lines 2-5 of Algorithm 3 in Figure 6). Each node that receives the NEW-VIEW message can extract important information from it, as described below.

[0119] The QC type fields in the VIEW-CHANGE messages in the 2f+1 QCs of the l.AggQC are used to extract the blocks that were last committed by at least f+1 bona fide nodes. If f+1 bona fide nodes commit the latest block, then any combination of 2f+1 VIEW-CHANGE messages will have at least one QC for a block committed by at least f+1 nodes (see below for more details on Lemma 2 and 3). A QC of a block committed by at most f nodes may also be an AggQC, but this is not guaranteed. If it is, the new primary extends the committed block by at most f nodes.

[0120] The β field in the 2f+1 VIEW-CHANGE messages of AggQC helps to extract the latest committed block by at most f honest nodes (in the absence of equalization). If a block is committed by fewer than f+1 honest nodes, its QC may not finish between the 2f+1 VIEW-CHANGE messages of AggQC, but since 2f+1 nodes (of which f+1 are honest) have voted for that block, at least one β in AggQC is from the latest committed block. It is also possible that the block / request for β has not been committed by a single honest node. In that case, the next primary must collect a proof that the block from β has not been committed.

[0121] Therefore, upon receiving the NEW-VIEW message from the new primary, each node extracts the latest qc and β (if any) (see Algorithm 3 in lines 12-15 of Figure 6). Then, each node sends a Ready message to the new primary. The new primary aggregates these read messages to the QC and broadcasts it back. Each QC r Upon receiving this, each node is ready to participate in the next view.

[0122] Existence of β. As stated in the change of view β, QC(QCv) is used to recover a block committed by at most f nodes (in the absence of equalization). However, if no such block exists, the primary must provide a proof that no such block exists that was committed by at most f honest nodes.

[0123] If the β field in all VIEW-CHANGE messages in AggQC is zero, it means that there are no blocks committed by at most f bona fide nodes. In other words, the latest proposed block has been committed by at least f+1 bona fide knocks. Thus, the new primary extends the block of the latest QC in AggQC. If there is a block b committed by x nodes and f ≥ x ≥ 1, the QC of block b may or may not be AggQC. In this case, the fast B4B protocol relies on β (for block b) to ensure that the latest block is extended after the view change. β is only relevant if its view is greater than the view of the latest QC in AggQC (highQC) and β.s == highQC.s + 1. If at least one VIEW-CHANGE message in AggQC has the QC of the latest committed block b (highQC), the new primary proposes a block to extend block b. In this case, it is possible that β is not relevant since β.s≦highQC.s and that a VIEW-CHANGE message in the AggQC does not have the QC of block b. However, it is guaranteed that at least one β in the AggQC is from block b. In this case, if the new primary does not have the payload of β from block b, the primary can retrieve the content of block b from other nodes in the network.

[0124] The new primary then proposes again the same block b in the same sequence as the first proposal after the view change. Thus, if there is a nonzero β (such that β.s==highQC.s+1), the new primary must ensure that if there is a block committed (by at most f honest nodes), it should be recovered (if necessary) and re-proposed. It is also possible that a block is not committed by any honest node, but its β has been received by the new primary and is therefore included in the AggQC. In this case, the new primary tries to obtain β's block (when β.s==highQC.s+1). If the block is obtained, the primary proposes it for the same sequence. If the block is not obtained, the primary must provide a proof to all honest nodes that such a block has not been committed by any honest node. This proof allows the new primary to extend the block with the latest QC (instead of β's block) in the VIEW-CHANGE message.

[0125] Therefore, in Algorithm 2 shown in FIG. 4, if there exists a β such that β.s==highQC.s+1 and the primary has a payload for β, then the primary can propose the payload for β (see lines 3-6 of Algorithm 2 in FIG. 4). If the β payload does not exist, the algorithm requires an additional data acquisition phase (see lines 8 and 12-14 of Algorithm 2 in FIG. 4). The primary broadcasts a request to obtain the payload for β. Now, if β is committed by at least a node, this means that 2f+1 nodes have voted for it. This means that 2f+1 nodes have the payload for β. Therefore, when a node responds to the request for the β payload, at least one response will have the payload. Upon receiving the payload, the new primary again proposes the payload for β.

[0126] It is also possible that the respective block for β is not committed by any honest node. In that case, the primary may not receive the β payload. However, the new primary is guaranteed to receive 2f+1 negative acknowledgments from different nodes (Algorithm 2, lines 9-11 of Figure 4). These 2f+1 negative acknowledgments indicate that the block for β is not committed by any honest node. To prove that the respective block for β is not committed, the new primary attaches the qcnr to its first proposal for the view. If there is a valid β and the new primary does not propose its payload and does not include its qcnr in its first proposal, the honest node triggers a view change. Thus, in the absence of equalization, fast B4B guarantees S-safety since we know that the latest block QC or the presence of β is always included in the AggQC. Thus, the new primary extends the latest committed block (in the absence of equalization).

[0127] 7, there is shown a process 700, which is an exemplary process flow of a fast B4B protocol according to an embodiment of the present invention, for a request sent from a client to a primary to perform an action. As shown, the process 700 includes first through thirteenth steps 705-765, respectively. The first through fifth steps 705-725 relate to the initial sub-process of whether the request from the client to the primary is the first suggestion after a view change and how this is handled upon both positive and negative determinations. The sixth through thirteenth steps 730-765 relate to subsequent processing of the request from the client.

[0128] Referring to the first to fifth steps 705 to 725, these include:

[0129] In a first step 705, a client node (client) in the express B4B process sends a request (proposal) to perform an operation to a primary blockchain node (primary).

[0130] In a second step 710, the primary determines whether this is the first proposal received after a view change process in a fast B4B process according to one embodiment of the present invention, and if so, the process 700 proceeds to a third step 715, otherwise the process 700 proceeds to a fifth step 725.

[0131] In a third step 715, a determination is made as to whether there is a request for a blockchain process to be performed that does not have such proof of votes. If so, the process 700 proceeds to a fourth step 720; otherwise, the process proceeds to a fifth step 725.

[0132] In a fourth step 720 , the primary proposes a request (PREPARE message) that extends the request with header β, and process 700 proceeds to a sixth step 730 .

[0133] In a fifth step 725 , the primary proposes another request (a PREPARE message) to extend the most recently committed request, and process 700 proceeds to a sixth step 730 .

[0134] Referring to the sixth to thirteenth steps 730 to 765, these include:

[0135] In a sixth step 730, each node (hereinafter referred to as a replica, which is a node performing a task within the high-speed B4B process according to an embodiment of the present invention) determines whether it has received a valid PREPARE message from the primary; if so, process 700 proceeds to a seventh step 735; if not, process 700 proceeds to a tenth step 750.

[0136] In a seventh step 735 , the replica broadcasts its vote to all other replicas and proceeds to an eighth step 740 .

[0137] In an eighth step 740, a determination is made by the replica as to whether or not a vote has been received; if so, the process 700 proceeds to a ninth step 745; otherwise, the process 700 proceeds to a tenth step 750.

[0138] In a ninth step 745, the process 700 ends when the replica has received the vote.

[0139] In a tenth step 750 , the replica broadcasts a view change (V) message to all other replicas, after which it proceeds to an eleventh step 755 .

[0140] In an eleventh step 755, the new primary constructs a new view message Q from the V messages received from the replicas and broadcasts it to all replicas before proceeding to a twelfth step 760.

[0141] In a twelfth step 760, the replica determines whether it has a new view message Q; if so, the process 700 proceeds to a thirteenth step 765; otherwise, the process 700 loops back to the tenth step 750.

[0142] In a thirteenth step 765, each replica, including the new primary, extracts and, if requested by the primary, returns a READY message with the β payload and / or a negative acknowledgment, and process 700 loops back to the third step 715.

[0143] In the case of equalization (Byzantine primary). The fast B4B protocol of the present invention achieves consensus with only two steps of communication, and therefore allows the Byzantine primary to implement equalization (i.e., proposing multiple blocks for the same sequence). In the case of equalization, if one of the proposed blocks is committed by f+1 honest nodes, the equalization does not result in the revocation of the blocks committed by f+1 honest nodes. Thus, the equalization cannot cause a safety or liveness problem. However, a problem arises when at most f honest nodes commit one of the equalization blocks. In this case, the blocks committed by at most f honest nodes may be invalidated.

[0144] To illustrate how revocation works, consider two equalization blocks b1(β1) and b2(β2), where b1 has been committed by f honest nodes. During a view change, the new primary receives VIEW-CHANGE messages from 2f+1 nodes. The new primary can receive VIEW-CHANGE messages containing β for both blocks b1(β1) and b2(β2). Now, if the new primary chooses to recover the payload of β1 and re-proposes the payload of β1, then S-safety is not violated or the S-safety condition holds.

[0145] However, if the new primary chooses to extend β2, at most f nodes that committed b1 must reach revokeb1. Thus, the S-safety condition fails. Because at most f honest nodes have committed block b1, the client has not received 2f+1 response messages. As a result, the client still does not consider the transaction in block b1 as committed. Thus, the invalidation does not result in double spend. Client c can only get 2f+1 response messages for a transaction if its subsequent blocks are committed by at least f+1 honest nodes. As mentioned above, a block cannot be invalidated if it is committed by f+1 honest nodes (see the safety proof outlined below).

[0146] View change optimization (computation). A view change in prior art VFT protocols can have a quadratic cost of signature verification in AggQC. However, in Jalalzai et al.'s "Fast-hotstuff: A fast and resilient hotstuff protocol" (2021), this quadratic cost of signature verification can be reduced linearly. The proposed technique is to verify the aggregated signature of AggQC along with the aggregated signature of the VIEW-CHANGE message with the highest QC. This is sufficient to guarantee the validity of AggQC. Verifying the aggregated signature of AggQC verifies that it contains VIEW-CHANGE messages from 2f+1 distinct nodes. Verifying the signature of the latest QC ensures that the latest QC and potentially the latest β message are valid. Thus, each node does not need to verify the aggregated signature from the remaining 2f QCs.

[0147] View change optimization (latency). Block recovery can be piggybacked with the VIEW-CHANGE message. For this purpose, an additional bit field needs to be added to the NEW-VIEW message. When the new primary is constructing the NEW-VIEW message from the 2f+1 VIEW-CHANGE messages, it simply switches the bit field to 1. This means that it does not have the respective block for β (when β.s == highQC.s + 1). Thus, each responding node sends the respective block (payload) of β or a Ready message and a piggybacked negative response (in case of payload of βisnotavailable). Similarly, the primary also includes the QC constructed from the 2f+1 Ready messages with the first proposed block. In this way, three communication steps can be saved during the view change.

[0148] Blacklisting of Primary Byzantines: Among the possible forms of attacks on blockchain, the equalization attack is one. It is mainly used as a means to break the security of the protocol. It is a powerful type of attack, but generally easy to detect. To address this, our novel fast B4B protocol blacklists primaries. It is important that this blacklist is consistent across the network. Therefore, within the novel fast B4B protocol, the blacklisting of Byzantine nodes is performed through transactions. This allows the network to make decisions and maintain consistency regarding the blacklist.

[0149] When honest node i receives multiple blocks for the same sequence, it knows that the primary is Byzantine and is attempting to perform equalization. Therefore, it broadcasts a proof (including the headers of both equalization blocks) contained in a view change message. This will trigger a view change as described above and depicted / illustrated in Algorithm 3 of Figure 6.

[0150] After the view change, honest nodes expect the new primary to include the blacklisted transaction in its block proposals. If the new primary does not propose the blacklisted transaction within a timeout period, the honest nodes forward their proof to the new primary and wait again for the blacklisted transaction to be proposed. If the blacklisted transaction is not proposed by the primary by the timeout, the honest nodes trigger a view change by broadcasting a VIEW-CHANGE message. This process continues until the new primary proposes a transaction that includes the blacklisted transaction.

[0151] It is also possible that a node is no longer a primary and another node i discovers an equalization proof for it. In this case, node i still broadcasts the proof to all nodes. Upon receiving the proof, node j checks whether the node that performed the equalization is blacklisted. If the equalizer is blacklisted, the proof is ignored by node j. Otherwise, node j forwards the proof to the current primary and waits for a proposal for a blacklist transaction. If the primary does not propose a blacklisting transaction within a timeout interval, node j broadcasts a VIEW-CHANGE message. Thus, eventually, there will be a bona fide primary proposing a blacklist transaction.

[0152] Proof of Correctness: In this section, we provide proofs of safety and liveness of our rapid B4B protocol. h Let be the set of good-will nodes in the network, and let 2f+1≦|S h Consider |≦n.

[0153] Safety: We show that our fast B4B protocol satisfies safety during normal mode. Similarly, our fast B4B protocol also satisfies safety during view change in the absence of equalization. In doing so, our fast B4B protocol can fall back to R-safety, but once all Byzantine nodes (at most f) are blacklisted, the protocol always guarantees S-safety. Below, we provide a lemma for our fast B4B safety.

[0154] Lemma 1. Our fast B4B protocol is S-safe during normal execution of the protocol.

[0155] Proof: This lemma can be proved by contradiction. Suppose that block b1 is committed by a single node i in s, such that i ∈ Sh. This means that 2f+1 nodes in set S1 voted for block b1. Similarly, if a good-will node j (j ∈ S h ) commits block b2 of sequence s. A set of 2f+1 nodes (S2) vote for block b2. Since n=3f+1, S1∩S2≧f+1. This means that there is at least one honest node that voted for both blocks b1 and b2. However, this is not possible because an honest node only votes once for a single block in the same sequence. Thus, our fast B4B is S-safe during normal execution of the protocol.

[0156] Lemma 2. Our fast B4B protocol is R-safe during normal execution of the protocol.

[0157] Proof: From Lemma 1, we see that fast B4B is S-safe during normal mode. Thus, we can conclude that if fast B4B is S-safe during normal mode, it is also R-safe during normal mode.

[0158] Lemma 3. Our fast B4B protocol is R-safe during view changes.

[0159] Proof: Block b1 is a set of nodes S1∩S of size f+1 just before the view change. h Assume that a block b1 is committed by V∈NEW-VIEW. During the view change, 2f+1 nodes in set S2 (of which at least f+1 nodes are honest) send their VIEW-CHANGE messages to the new primary. The new primary aggregates the 2f+1 VIEW-CHANGE messages into a NEW-VIEW message (Algorithm 3 in Figure 6). Since S1 ∩ S2 = S and S ≥ 1, there exists at least one honest node that has committed block b1 and has its VIEW-CHANGE message V∈NEW-VIEW. This means that when the new primary broadcasts the NEW-VIEW message, all receiving nodes know that b1 is the latest committed block. Therefore, the new primary must extend block b1.

[0160] Lemma 4. Our fast B4B protocol is S-safe during view changes in the absence of equalization.

[0161] Proof: Block b is committed by a single node i in sequence s just before the view change. This means that a set of nodes S1 ≥ 2f+1 voted for block b. During the view change, the new primary collects VIEW-CHANGE messages from another set of 2f+1 nodes S2 into a NEW-VIEWmessage. There is no guarantee that the VIEW-CHANGE message from node i is included in the NEW-VIEWmessage constructed from the VIEW-CHANGE messages of the nodes in S2. However, each node in S2 includes its VIEW-CHANGE in the NEW-VIEWmessage with the latest β (the block header it voted for). Thus, since n = 3f+1, S1 ∩ S2 ≥ f+1. This means that there is at least one bona fide node j in the intersection of S1 (which voted for block b) and S2 (which has its VIEW-CHANGE Vj ∈ NEW-VIEWmessage). Therefore, the new primary can take the payload of β (the header of block b) and propose it for the same sequence s as shown in Algorithm 2 in Figure 4.

[0162] Lemma 5. After blacklisting f Byzantine nodes, Fast B4B guarantees S-safety.

[0163] Proof: A Byzantine primary can enforce equalization by proposing multiple blocks for the same sequence. As outlined above, we can detect equalization attacks and blacklist the responsible primary node. Thus, after blacklisting f Byzantine nodes, there is no Byzantine node left to enforce equalization when elected as a primary. Hence, there is no more equalization based on Lemma 1, 2, 3, and 4. The fast B4B protocol is S-safe after blacklisting f equalizing nodes.

[0164] The above lemma proves that the fast B4B protocol of the present invention is always R-safe. Also, the Fast-B4B of the present invention is S-safe during normal mode and view change (when there is no equalization). After blacklisting f Byzantine primaries, the fast B4B protocol of the present invention always guarantees S-safety for equalization.

[0165] Liveness: The fast B4B consensus protocol of the present invention guarantees that it will eventually progress and not stall indefinitely. Fast B4B replaces the primary through a view change if the primary fails to progress. The fast B4B of the present invention utilizes techniques from PBFT to provide liveness. The first technique includes an exponential backoff timer where the timeout period doubles after each view change to give the next major sufficient time to reach a decision regarding requests / blocks.

[0166] Second, a node broadcasts a VIEW-CHANGE message if it receives f + 1 VIEW-CHANGE messages from different nodes that are higher than its current view. This ensures that at least one message is from a non-faulty node. Further, a node broadcasts a VIEW-CHANGE message for the smallest view among f + 1 VIEW-CHANGE messages if it receives f + 1 VIEW-CHANGE messages for different views that are larger than its current view.

[0167] Third, to prevent the protocol from becoming indefinitely stuck in a view change state, a node triggers a view change if it receives at most f < n / 3 VIEW-CHANGE messages and does not broadcast a VIEW-CHANGE message. Thus, a Byzantine node cannot trigger a view change until at least one non-faulty node also broadcasts a VIEW-CHANGE message.

[0168] If primaries are selected in a round-robin fashion, then after at most f Byzantine primaries, a good primary will be selected. Thus, progress will eventually be made. Similarly, if primaries are selected randomly, then the probability of a bad event (selection of a Byzantine primary) is P b = 1 / 3. By considering such a bad event as a Bernoulli trial, the probability of a bad event for k consecutive views is The result is TIFF2024535784000002.tif44. This is TIFF2024535784000003.tif44 rapidly approaches zero k-increment. Thus, eventually, an honest node is selected as the primary so that the protocol can proceed.

[0169] Therefore, we have presented above what we call a fast B4B consensus protocol for blockchains and distributed ledgers. The fast B4B protocol achieves consensus during normal protocol operation with only two communication steps. We have shown that the previous optimal bound for Byzantine elasticity can be improved from f=(n+1) / 5 (see Kuznetsov) to f=(n-1) / 3. Furthermore, our algorithm does not use any trusted hardware to achieve this improvement. Furthermore, our algorithm has strong safety guarantees against honest primaries and has optimized view changes.

[0170] Specific details are given in the above description to provide a thorough understanding of the embodiments. However, it will be understood that the embodiments may be practiced without these specific details. For example, circuits may be shown in block diagrams in order to avoid obscuring the embodiments in unnecessary detail. In other instances, well-known circuits, processes, algorithms, structures, and techniques may be shown without unnecessary detail in order to avoid obscuring the embodiments.

[0171] The implementation of the techniques, blocks, steps, and means described above can be performed in various ways. For example, these techniques, blocks, steps, and means can be implemented in hardware, software, or a combination thereof. In the case of a hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, other electronic units designed to perform the functions described above, and / or combinations thereof.

[0172] It is also noted that the embodiments may be described as a process that is depicted as a flowchart, a flow diagram, a data flow diagram, a structure diagram, or a block diagram. Although a flowchart may describe operations as a sequential process, many of the operations may be performed in parallel or simultaneously. Additionally, the order of operations may be rearranged. A process terminates when its operations are completed, but may have additional steps not included in a diagram. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc. When a process corresponds to a function, its termination corresponds to a return of the function to the calling function or the main function.

[0173] Further, the embodiments may be implemented by hardware, software, scripting languages, firmware, middleware, microcode, hardware description languages, and / or any combination thereof. When implemented in software, firmware, middleware, scripting languages, and / or microcode, the program code or code segments to perform the necessary tasks may be stored in a machine-readable medium, such as a storage medium. A code segment or machine-executable instructions may represent a procedure, a function, a subprogram, a program, a routine, a subroutine, a module, a software package, a script, a class, or any combination of instructions, data structures, and / or program statements. A code segment may be coupled to another code segment or a hardware circuit by passing and / or receiving information, data, arguments, parameters, and / or memory contents. Information, arguments, parameters, data, etc. may be passed, forwarded, or transmitted via any suitable means including memory sharing, message passing, token passing, network transmission, etc.

[0174] In the case of a firmware and / or software implementation, the methods may be implemented with modules (e.g., procedures, functions, etc.) that perform the functions described herein. Any machine-readable medium tangibly embodying instructions may be used in implementing the methods described herein. For example, the software code may be stored in a memory. The memory may be implemented within the processor or external to the processor and may differ in the implementation in which the memory is employed to store the software code for subsequent execution from the implementation in which the memory is employed to execute the software code. As used herein, the term "memory" refers to any type of long-term, short-term, volatile, non-volatile, or other storage medium and should not be limited to any particular type or number of memories or the type of medium on which the memory is stored.

[0175] Additionally, as disclosed herein, the term "storage medium" may refer to one or more devices for storing data, including read-only memory (ROM), random-access memory (RAM), magnetic RAM, core memory, magnetic storage media, optical storage media, flash memory devices, and / or other machine-readable media for storing information. The term "machine-readable medium" includes, but is not limited to, portable or fixed storage devices, optical storage devices, wireless channels, and / or various other media capable of storing, containing, or carrying instruction(s) and / or data.

[0176] The methods described herein can, in one or more embodiments, be implemented by a machine that includes one or more processors that accept code segments that include instructions. For any of the methods described herein, when the instructions are executed by the machine, the machine performs the method. Any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be performed by the machine is included. Thus, a typical machine can be exemplified by a typical processing system that includes one or more processors. Each processor may include one or more of a CPU, a graphics processing unit, and a programmable DSP unit. The processing system may further include a memory subsystem that includes a main RAM and / or static RAM, and / or a ROM. A bus subsystem may be included for communication between components. If the processing system requires a display, such a display may be included, for example, a liquid crystal display (LCD). If manual data entry is required, the processing system also includes input devices such as one or more of an alphanumeric input unit such as a keyboard, a pointing control device such as a mouse, and the like.

[0177] The memory includes machine-readable code segments (e.g., software or software code) that, when executed by a processing system, include instructions for performing one or more of the methods described herein. The software may reside entirely in the memory, or may reside completely or at least partially in RAM and / or in the processor during its execution by the computer system. Thus, the memory and the processor also constitute a system that includes machine-readable code.

[0178] In alternative embodiments, the machine may operate as a stand-alone device or be connected, e.g., networked, to other machines in a networked deployment, where the machine may operate in the capacity of a server or a client machine in a server-client network environment, or as a peer machine in a peer-to-peer or distributed network environment. The machine may be, for example, a computer, a server, a cluster of servers, a cluster of computers, a web appliance, a distributed computing environment, a cloud computing environment, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by the machine. The term "machine" may also be interpreted to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methods described herein.

[0179] The foregoing disclosure of exemplary embodiments of the present invention has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many variations and modifications of the embodiments described herein will be apparent to those skilled in the art in light of the above disclosure. The scope of the present invention should be defined only by the claims appended hereto, and their equivalents.

[0180] Furthermore, in describing representative embodiments of the present invention, the specification may present the method and / or process of the present invention as a particular sequence of steps. However, unless the method or process depends on the particular order of steps described herein, the method or process should not be limited to the particular sequence of steps described. As one of ordinary skill in the art will appreciate, other sequences of steps may be possible. Thus, the particular order of steps described herein should not be construed as limiting the scope of the claims. In addition, claims directed to the method and / or process of the present invention should not be limited to performing those steps in the order described, and one of ordinary skill in the art can readily appreciate that the sequence may be altered and still be within the spirit and scope of the present invention.

Claims

1. 1. A method comprising: providing a plurality of n nodes communicating over a communications network, each node comprising a microprocessor for performing tasks related to the distributed ledger and executing software instructions stored in memory accessible to the microprocessor; providing the memory to store the software instructions, the software instructions relating to a processing block of the distributed ledger and a protocol for handling Byzantine faults within a subset of the plurality of n nodes; the protocol achieves consensus in two communication steps, a first of the two communication steps being the receipt of a message to a node of the plurality of n nodes and a second of the two communication steps being the transmission of another message from the node of the plurality of n nodes; the protocol is capable of reaching consensus when a number f of the plurality of n nodes exhibits a Byzantine fault; The method,where f is an upper bound on the number of Byzantine nodes, and f=(n-1) / 3.

2. 2. The method of claim 1, wherein if a node of the plurality of n nodes that exhibits the Byzantine fault is a primary node that transmits a block of the distributed ledger for which consensus is sought, another node of the plurality of n nodes can trigger a process to establish a blacklist of the primary node.

3. The protocol has two modes: A first of the two modes when blocks of the distributed ledger are added to the distributed ledger without encountering a failure; and and a second of the two modes when a failure is encountered, the second of the two modes resulting in a change of primary node that transmits blocks for which consensus is sought for addition to the distributed ledger, and the primary node that previously transmitted blocks for which consensus is sought for addition to the distributed ledger is blacklisted.

4. 1. A system comprising: a plurality of n nodes communicating over a communications network, each node comprising a microprocessor for performing tasks related to the distributed ledger and for executing software instructions stored in a memory accessible to the microprocessor; the memory storing the software instructions, the software instructions relating to a processing block of the distributed ledger and a protocol for handling Byzantine faults within a subset of the plurality of n nodes; the protocol achieves consensus in two communication steps, a first of the two communication steps being the receipt of a message to a node of the plurality of n nodes and a second of the two communication steps being the transmission of another message from the node of the plurality of n nodes; the protocol is capable of reaching consensus when a number f of the plurality of n nodes exhibits a Byzantine fault; f is an upper bound on the number of Byzantine nodes, and f = (n-1) / 3 in the system.

5. 5. The method of claim 4, wherein if a node of the plurality of n nodes that exhibits the Byzantine fault is a primary node that transmits a block of the distributed ledger for which consensus is sought, another node of the plurality of n nodes can trigger a process to establish a blacklist of the primary node.

6. The protocol has two modes: A first of the two modes when blocks of the distributed ledger are added to the distributed ledger without encountering a failure; and and a second of the two modes when a failure is encountered, the second of the two modes resulting in a change of primary node that transmits blocks for which consensus is sought for addition to the distributed ledger, and the primary node that previously transmitted blocks for which consensus is sought for addition to the distributed ledger is blacklisted.

7. Computer-executable instructions stored on a non-volatile non-transitory storage medium for execution by a microprocessor, the computer-executable instructions, when executed, cause the microprocessor to: configured to run a process for processing blocks of the distributed ledger; The process includes computer-executable instructions for handling Byzantine faults within a subset of a plurality of n nodes that communicate information regarding the distributed ledger over a communications network.

8. The protocol achieves consensus on a block of the distributed ledger among a subset of the plurality of n nodes in two communication steps; The first of the two communication steps is receiving a message to a node of the plurality of n nodes, the message being processed by the process for processing blocks of the distributed ledger; a second communication step of the two communication steps is transmitting another message from the node of the plurality of n nodes established in response to the processed message; the protocol is capable of reaching consensus when a number f of the plurality of n nodes exhibits a Byzantine fault; 8. The computer-executable instructions of claim 7, wherein f is an upper bound on the number of Byzantine nodes, where f=(n-1) / 3.

9. The process may trigger a further process to blacklist the primary node; 8. The computer-executable instructions of claim 7, wherein the primary node is a node of the plurality of n nodes that represents a Byzantine fault transmission block of the distributed ledger for which consensus is sought.

10. The protocol has two modes: A first of the two modes when blocks of the distributed ledger are added to the distributed ledger without encountering a failure; and and a second of the two modes when a failure is encountered, the second of the two modes resulting in a change of primary node that transmits blocks for which consensus is sought for addition to the distributed ledger, and the primary node that previously transmitted blocks for which consensus is sought for addition to the distributed ledger is blacklisted.

11. 1. A method comprising: providing a plurality of n nodes communicating over a communications network to establish a running protocol, each node comprising a microprocessor for performing tasks related to the distributed ledger and executing software instructions stored in a memory accessible to the microprocessor; the protocol is capable of reaching consensus when a number f of the plurality of n nodes exhibits a Byzantine fault; The method,where f is an upper bound on the number of Byzantine nodes, and f=(n-1) / 3.

12. 1. A method comprising: providing a plurality of n nodes communicating over a communications network to establish a running protocol, each node comprising a microprocessor for performing tasks related to the distributed ledger and executing software instructions stored in a memory accessible to the microprocessor; The first mode of the protocol is established when a block of the distributed ledger is added to the distributed ledger without encountering a failure. a second mode of the protocol is established when a failure is encountered, the second of the two modes resulting in a change of primary node that transmits blocks for which consensus is sought for addition to the distributed ledger, and the primary node that previously transmitted blocks for which consensus is sought for addition to the distributed ledger is blacklisted.

13. 1. A method comprising: providing a plurality of n nodes communicating over a communications network to establish a running protocol, each node comprising a microprocessor for performing tasks related to the distributed ledger and executing software instructions stored in a memory accessible to the microprocessor; the protocol is capable of reaching consensus when a number f of the plurality of n nodes exhibits a Byzantine fault; The method of claim 1, wherein the protocol results in a blacklist of the number f of the plurality of n nodes exhibiting Byzantine faults.

14. The method of claim 13, wherein f is an upper bound on the number of Byzantine nodes, and f=(n-1) / 3.

Citation Information

Patent Citations

  • System and method for terminating a view change protocol

    JP2020522778A

  • Method and system for byzantine fault-tolerance replicating of data on a plurality of servers

    US20180157558A1

  • A method and system for a decentralized transactional communication protocol

    WO2021030906A1