concept Fabric in category hyperledger

This is an excerpt from Manning's book Programming Hyperledger Fabric: Creating Permissioned Blockchains.
All these protocols are CFT which means they can handle a certain number of node failures (of course if all nodes fail then the system cannot continue functioning; transactions or messages will start getting dropped until a node recovers) but they do assume that when nodes are healthy they don’t send wrong messages to each other about their state. In other words, when a node receives a message from another node, that message can be trusted; nodes do not lie to each other. This is also equivalently stated and understood as saying that the nodes can be trusted. This is what trust means in context of consensus algorithms in blockchain or distributed-systems literature. Dealing with untrusted nodes falls in the realm of Byzantine Fault Tolerance or BFT for short. Wikipedia 27 defines it as A Byzantine fault is a condition of a computer system, particularly distributed computing systems, where components may fail and there is imperfect information on whether a component has failed. Designing a BFT system is much more difficult as you can imagine. Please note that Fabric as of now (i.e., version
2.0) does not implement a BFT consensus protocol. Future versions of Fabric hope to add a BFT protocol. 28The fact that Fabric is not BFT can lead someone to wonder is it even secure? Being BFT is not the only thing that drives security of a blockchain. Indeed, most of the security comes from digital signatures which ensure transactions cannot be manipulated. An attack on the ordering service (not easy by any means) can only result in some transactions being dropped or the order of transactions being manipulated and both of these though harmful cannot cause as much damage as, for example, someone being able to manipulate the dollar amount in a transaction or making himself the owner of an asset that is being transferred to someone else. Although BFT is definitely more secure, it is more difficult to implement and there is a price to be paid as well in terms of what transaction throughput you can get. In my opinion using a CFT protocol was the right trade-off for Fabric as it started with a centralized ordering service (Kafka). When all nodes of the ordering service are under control of a single organization (as when using Kafka) there is no reason why there would be Byzantine faults (also known as malicious or untrusted nodes) in the system.
The thing to note here that the overall consensus in Fabric is a 2-step process. First, there needs to be consensus amongst the nodes making up the ordering service and this is achieved by protocols such as Raft. Second, and ultimately what we are interested in the end is consensus amongst the peer nodes. And that is achieved by the fact that if all peer nodes start out in the same state (empty ledger) and all process transactions in the same order then it logically follows that they will remain in sync. This does assume that all peer nodes are running the same code which gives the same predictable output to given input i.e., the same input should produce the same output on all the peer nodes irrespective of when and where it was run (location and time invariant).
In the previous chapter, we did a pretty good deep dive into Fabric’s transaction flow in Section 1.6. We also learned a whole host of new terms like peers, orderer, smart contract, transactions, digital signatures, client application, endorsement policy, consensus, Kafka, Raft etc. However two questions were left unanswered:
The channel creation, join peer nodes to channel, install, approve and commit chaincode are all done using the
peerCLI that ships with Fabric. As of this writing, it is not possible to do any of this from a Node app. A Node app would provide a friendly UI to perform these actions and could potentially be used by people who are not Fabric developers such as people in Ops. Fabric plans to develop afabric-adminpackage which will provide ability to install, approve and commit chaincode from a Node app but the channel provisioning would still need to be done from the CLI. 82 Note that version 1.4 of thefabric-clientNode package has support for channel creation and chaincode provisioning APIs but this package is deprecated and not suggested to be used with Fabric 2.0. In v2.0,fabric-networkis the only recommended API for developing client applications. 83 As Fabric 2.0 is very new at time of this writing expect things to evolve. In fact v2.0 of thefabric-networkpackage itself is under beta.
Listing 4.15. Peer binary that comes with Fabric
$ peer version peer: Version: 2.0.1 Commit SHA: 1cfa5da98 Go version: go1.13.4 OS/Arch: darwin/amd64 Chaincode: Base Docker Namespace: hyperledger Base Docker Label: org.hyperledger.fabric Docker Namespace: hyperledger