EGN-Project / lisp-endpoint-agent

🔐 Blockchain-based endpoint agent, written in Common Lisp.
MIT License
1 stars 1 forks source link

Research Hyperledger fabric #29

Closed Bebo561 closed 1 month ago

Bebo561 commented 8 months ago

Research key details about Hyperledger Fabric, including the consensus algorithm used, the ability to write custom transactions, and how to deploy a private production blockchain network.

Bebo561 commented 8 months ago

Consensus network - Hyperledger Fabric uses a consensus algorithm called Practical Byzantine Fault Tolerance (PBFT) for ordering transactions. PBFT is a consensus algorithm designed to tolerate Byzantine faults, meaning it is robust even when some nodes in the network are malicious or faulty. It's important to note that while PBFT is used for ordering transactions in Hyperledger Fabric, Fabric is modular and allows for pluggable consensus mechanisms for validating transactions within each peer.

Node Communication Method - Hyperledger fabric relies on gRPC for communication between nodes. Every peer node has its own unique gRPC address, which is provided in its configuration. . When a node joins the network, it provides information about its gRPC address, and this information is disseminated to other nodes through the gossip protocol.

How does Hyperledger Fabric handle finding new nodes?

edavid2021 commented 8 months ago

In Hyperledger Fabric, the "gossip protocol" is crucial for discovering new nodes and maintaining network updates. It operates as a peer-to-peer communication mechanism, ensuring nodes learn about each other's states, including new node additions or removals. Peers communicate through a dedicated "gossip channel" to exchange information such as membership lists, ledger states, and endorsement policies. When a new peer joins a channel, it connects with existing peers and exchanges membership information using the gossip protocol. Peers periodically share gossip messages containing details about their local states, facilitating node discovery and failure detection. The protocol's decentralized and dynamic nature allows Hyperledger Fabric to operate effectively in permissioned networks, accommodating nodes joining or leaving at any time. This flexibility is vital for enterprise blockchain networks, contributing to the decentralized and adaptive design of Hyperledger Fabric.