Open In App

Transaction Flow in Hyperledger Fabric

Transaction in hyperledger fabric reflects the business activity in the fabric network. Due ensure data immutability the transactions are kept inside the block and the chain structure is used for protection. In hyperledger fabric, each node maintains a ledger and the consensus mechanism is used to keep the ledger updated and identical at every node. The ledger at each node is composed of two parts, a blockchain, and a world-state database. The article focuses on discussing the transaction flow in Hyperledger Fabric.

Assumptions

There are a few assumptions to understand before beginning with the transaction flow in Hyperledger Fabric. 



 

Transaction Flow in Hyperledger Fabric

Below are the steps in the transaction flow in the hyperledger fabric:

1. Client A initiates a transaction:

 

 

2. Endorsing peers verify the signature and execute the transaction: 

The endorsing peers verify that:



The endorsing peers take the transaction proposal inputs as arguments to invoke the chaincode function. The chaincode function gets executed and produces transaction results, response value, write set, and read set. Till this point, there is no update being done to the ledger. The set of these generated values along with the endorsing peer’s signature is sent to the target peer as the proposal response.

 

3. Proposal responses are inspected: 

 

4. Target peer assembles endorsements into a transaction:

 

5. Transaction is validated and committed:

 

7. Ledger updated:


Article Tags :