A — Z of Hyperledger Fabric — A master series

Akash Gupta
Theta One Software
Published in
3 min readMar 31, 2021

What is Hyperledger Fabric? In layman’s terms, it is a framework Blockchain implementation of a permissioned network, tailored made for enterprises. So…what is Blockchain and what do you mean by permissioned? A Blockchain is a distributed (everyone in the network has the same information) and decentralized (no one participant has more power than another participant over the network) transaction ledger that is immutable — extremely difficult to tamper with.

What about permissioned network? It just means that you need permission to belong to the network, every participant in the network has a very clear identity and everyone in the network knows who’s who.

When it comes to the private blockchain, Hyperledger Fabric might be one of the most popular and adopted blockchain frameworks. When I started learning Hyperledger Fabric for the very first time, I found that it was difficult to understand how Hyperledger Fabric works because of its enormous technology stack. To understand how it works, one is required to know several aspects such as blockchain technology, network and system architecture, DevOps operations, full-stack software development, test-driven and behavior-driven development, cryptography, authorization, and access control, IT security aspects, business use cases, etc.

In this master series we will have attempted to explain the Fabric setup from scratch starting from the various YAML files. We will discuss all the the important concepts, installation and POC setup through a series of articles.

Installation

  • Install Git: Install the latest version of Git with the command below.
sudo apt-get install git
  • Install cURL: Install the latest version of cURL with the command below.
sudo apt-get install curl
  • Install wget: Install the latest version of wget with the command below. It will be needed for downloading Fabric binaries.
sudo apt-get install wget
  • Install Docker and Docker Compose: Install the latest version of docker with the command below. Then you add your current user in docker group.
sudo apt-get -y install docker-compose
sudo usermod -aG docker ${USER}===> logout and login are needed after adding docker group, check everything is ok with the command belowid -nG
  • Install Go: Install and extract the 1.14.x version of go with the commands below. Then we carry go folders to under /usr/local directory.
wget https://golang.org/dl/go1.14.2.linux-amd64.tar.gz
sudo tar -xvf go1.14.2.linux-amd64.tar.gzsudo chown -R root:root ./go
sudo mv go /usr/local

We need to add our go path to the$PATH variable but what we add always be wiped when user login.

  • Fabric Binaries: Now, we will install the latest release of Fabric samples, binaries, and docker images with the command below.
curl -sSL http://bit.ly/2ysbOFE | bash -s

Article Series.

--

--