Category Archives: Hyperledger
How to Install Hyperledger Explorer & Access Fabric Network
Hyperledgder Explorer is a Blockchain explorer which can be used to view the details on the one or more blockchain network (channels) created using Hyperledger Fabric 1.0. In this post, you will learn about some of the following: Introduction to Hyperledger Explorer App Installation/Setup of Hyperledger Explorer Configure hyperledger explorer for the first network Starting the Explorer App Introduction to Hyperledger Explorer App Hyperledger Explorer is a Nodejs based web app which runs on Node/ExpressJS with MySQL as the backend database. It provides details related Fabric blockchain network (channels) based on configuration provided in the file, blockchain_explorer/config.json. The following represents some of the key details provided by the explorer app vis-a-vis …
Learn to Create Hyperledger Fabric Blockchain with byfn.sh – Part 1
Hyperledger Fabric comes up with a script namely byfn.sh which can be used to Build Your First Network (byfn). Hyperledger Fabric script, byfn.sh (found in folder fabric-samples/first-network), can be used to build your first Hyperledger Fabric permissioned blockchain network. As I went about writing the post, it got much longer. Thus, I have split the post into two parts. In the first part, you will learn about some of the following: A quick introduction to some of the following: Installation pre-requisites before getting started with byfn.sh execution Initial configuration prior to executing byfn.sh How to go about executing byfn.sh Deep dive into byfn.sh execution to learn key aspects of building a permissioned blockchain network such …
Hyperledger Fabric – Are Channels Private Blockchain? (Deep Dive)
This article represents Hyperledger Fabric Channels concepts and related details in form of some of the following topics: What are Channels? Hyperledger Fabric Blockchain Network is a channel Channels are private and permissioned Blockchain Channels explained with examples Channels – channel configuration, genesis block Ordering service creates a transaction block per channel Blockchain network is categorized into two broad classes: Public network: Anyone can join this type of network. For example, bitcoin network. Private or permissioned network: A member needs to be authenticated by the assigned membership service provider (identity issuing authority service) for joining and conducting transactions in the network. Hyperledger Fabric can be said to be private or permissioned blockchain. …
Hyperledger Fabric – Cryptogen Tool Not Found…Exiting
This error, Cryptogen Tool Not Found…Exiting occurred when I tried to build the first network by executing byfn.sh script using following commands for the first time after downloading and installing hyperledger fabric platform binaries/components and fabric samples: The following screenshot represents the error: Why the Error – Cryptogen Tool Not Found This error occurs, primarily, due to the reason that cryptogen tool can be not be found in the path. The path to cryptogen tool needs to be set to PATH variable. This can be confirmed by checking the logs of the script execution by putting the following code (set -x) in the beginning of the file, byfn.sh, as shown below. Note that the code set-x is used to expand …
Hyperledger Fabric Transaction Flow (Interview Q&A & Notes)
This article represents concepts in relation to, how does a transaction flow in Hyperledger Fabric Blockchain network, in form of notes and interview questions and answers. Those appearing for Hyperledger Fabric interview would find the questions and notes very useful for quick brush-up. Hyperledger Fabric is a platform for distributed ledger solutions. The following represents key participants in Hyperledger Fabric Blockchain network who are involved in the transaction flow right from the initiation of transaction proposal to committing a transaction into the distributed ledger. Application: Gets involved in following capacity: Sends the transaction proposal to endorsing peers Receives the transaction results from endorsing peers Broadcasts the transaction message to ordering service Endorsing peers: Do some of the …
Hyperledger Fabric Distributed Ledger – Interview Questions / Notes
This article represents practice test / interview questions and answers and revision notes on Hyperledger Fabric Distributed Ledger**. These questions and answers can prove to be very helpful to check your knowledge on Hyperledger Fabric if you are appearing for Hyperledger Fabric interview in near future. Hyperledger Fabric is an open-source framework for building distributed ledger solutions. The distributed ledger is maintained by every peer participating in the network. It is stored as a combination of a transaction logs and a world state database (key-value pairs). Revision Notes – Hyperledger Fabric Distributed Ledger Concepts The distributed ledger is a combination of following: Blockchain to store immutable ordered/sequenced records; It is stored in form of transaction logs and stored in peers’ file system (local …
Hyperledger Fabric – Difference between World State DB & Transaction Logs
This article highlights key differences between World State Database (DB) and Transaction Logs which comprise the Hyperledger Fabric Distributed Ledger. Hyperledger Fabric Distributed Ledger can be said to be a combination of World State Database (DB) and transaction logs. It requires invocation of chaincode (smart contracts) for interacting with distributed ledgers (world state DB and transaction logs). The transactions are stored in the block in the same sequence in which they occured and this is responsibility of ordering service to ensure the ordering sequence of transactions in the block. World State Database Transaction Logs Stores the chain’s state information in form of key-value pairs Stores chain of blocks consisting of transaction details in form of sequence of transactions Stored in database such as LevelDB …
Hyperledger Fabric Introduction – Interview Questions / Revision Notes
This article represents practice test and revision notes on Introduction to Hyperledger Fabric. These questions and answers can prove to be very helpful to check your knowledge of Hyperledger Fabric if you are appearing for Hyperledger Fabric interview in near future. Hyperledger Fabric is an open-source framework for building distributed ledger solutions. The unique thing about Hyperledger Fabric is that it supports pluggable implementations of different components such as identity management, consensus algorithm etc. Revision notes on Introduction to Hyperledger Fabric Hyperledger Fabric can be used for creating private and permissionless Blockchain network. Blockchain Participants – Membership Members join Hyperledger Fabric Blockchain network using Membership Service Provider (MSP) service. Hyperledger Fabric allows custom MSP to be plugged. Distributed Ledger – Data and Database Hyperledger Fabric allows ledger data to be stored …
Hyperledger Fabric Platform Components & Docker Images
This article represents details on installing / setting up Hyperledger Fabric Platform Components / Binaries with emphasis on some of the following: Steps for how to install / setup Fabric platform components & docker images Details on platform components which are used for setting up the Fabric network Details on docker images which comprise Hyperledger Fabric network The installation leads to download /pull of docker images which are required to run the Blockchain network using Hyperledger Fabric. Installing Fabric Platform Components & Docker Images The following command can be used to install Platform binaries: In case Docker commands require sudo, the above command looks like following: The script which gets …
Hyperledger Tools – When / Why to use them?
This article aims to present details on when and why to use which Hyperledger tools. The following are different tools which are referred later in this article: Cello Composer Explorer Quilt This article will be updated on regular basis as newer tools come up. When / Why to use which Hyperledger Tools? The following represents details related with the Hyperledger tools: Hyperledger Tools When and Why to use them? Explorer Hyperledger Explorer is a web application which can be used to view, invoke, deploy or query blocks, transactions and associated data, network information (name, status, list of nodes), chain codes and transaction families, as well as any other relevant information stored in the …
Hyperledger Interview Questions and Answers – Set 1
This is the first in series of practice tests / interview questions and answers in relation to Hyperledger products suite for building distributed ledgers / Blockchain business networks. This test focuses on checking your knowledge on different products such as following under hyperledger umbrella. Fabric Sawtooth Iroha Indy Burrow Cello Composer Quilt Explorer Revision Notes – Hyperledger Tools & Frameworks Hyperledger Fabric supports pluggable consensus algorithm (ordering service) and membership service provider Hyperledger Indy can be used to build distributed ledger (Blockchain) related with decentralized digital identities Hyperledger Burrow is used for creating a permissioned Ethereum smart-contract blockchain node that executes smart contract code following the Ethereum specification. Hyperledger Explorer can be used to view, invoke, deploy or query blocks, transactions and associated data, network …
List of Hyperledger Tools & Frameworks for Blockchain Apps
This article represents a list of Hyperledger tools and frameworks for building Blockchain applications and when to use each one of them. Hyperledger Frameworks The following is the list of frameworks that can be used to create blockchain applications based on distributed ledger technology. Hyperledger Fabric Hyperledger Fabric is a blockchain framework implementation. It is one of the foundation framework for developing / building Blockchain applications or solutions with a modular architecture. The most striking feature of Hyperledger Fabric is that it allows components, such as consensus and membership services, to be plug-and-play. At the core of Hyperledger Fabric is container technology which is used to host smart contracts called chaincode that comprise the application logic of the system. The following is the list of cool features of …
Hyperledger Network Certificates & How to Create Them
This blog represents code samples and related concepts on how to create hyperledger network certificates. These certificates will be used by peer nodes in Hyperledger Blockchain network. Crypto Config file for Generating Hyperledger Network Certificates Following is a YAML configuration file which can be used to create certificates for different network entities in the blockchain network. You can save the file with name such as crypto-config.yaml Pay attention to some of the following in above file: There are two high-level entries for organizations managing orderer node and peer nodes. They are OrdererOrgs and PeerOrgs Each org would be defined with attributes such as name, domain, specs, templates, users etc. Specs entry …
Hyperledger Fabric – Hello World with Blockchain Network
Hyperledger Fabric Hello World is about building your first blockchain network. We will make use of fabric-samples provided by Hyperledger. The first Blockchain network will be built using Docker containers. The first network will result in running containers representing some of the following: Two peer nodes each, representing two different organizations. Thus, one organization will have two peer nodes, one of which is called an anchor node and is used to ensure availability. For two organization, there will be four nodes. One node representing Ordering service Management node to do some of the following activities: Join peers to a channel Deploy and instantiate chain code Drive execution of transactions against deployed …
I found it very helpful. However the differences are not too understandable for me