What is HyperLedger?
Hyperledger is an umbrella project of open source blockchains and related tools, started in December 2015 by the Linux Foundation, to support the collaborative development of blockchain-based distributed ledgers. Hyperledger is designed to create enterprise grade, open source, distributed ledger frameworks and code bases to support business transactions.
One of the first question that rises when studying Hyperledger is "Are blocks mined in HyperLedger?" And the answer is no. Let's figure out, why.
Hyperledger Validating Peers (VPs) do not mine blocks and do not share the blocks between them. Here is how it works:
- A transaction is send to one trusted VP.
- The VP broadcasts the transaction to all other VPs.
- All VPs reach consensus (using PBFT algorithm) on the order to follow to execute the transactions.
- All VPs execute the transactions "on their own" following the total order and build a block (calculating hashes mainly) with the executed transactions.
All the blocks will be the same because: the transaction execution is deterministic (should be) and the number of tx in a block is fixed.
You can learn more at official website.