Skip to content
  • Home
  • Privacy Policy
  • Services
  • Testimonials
  • Who we are
  • Blog
  • Let’s Talk

Zuiver

  • Let’s Talk
  • Toggle search form

Hyperledger Fabric: How to Setup Application from Scratch using Nodejs Series— Part 2

Posted on July 28, 2022July 28, 2022 By admin No Comments on Hyperledger Fabric: How to Setup Application from Scratch using Nodejs Series— Part 2

In my previous article, we started with an introduction & on how to set up Hyperledger Fabric server. We also discussed a quick story on real-time use cases & how blockchain supports the industry. This article covers a little deep on the following binary files & also those 4 components I mentioned(ORDERER,CA(CERTIFICATE AUTHORITY),PEERS & COUCHDB) before.

Let’s get started…

So when you set up “Build your first network” from fabric-samples, you would see these binary files in bin folder

  • cryptogen,
  • configtxgen,
  • configtxlator,
  • peer
  • orderer and
  • fabric-ca-client

What each binary does is special in the fabric server. When you develop your own network, you must declare or define who is going to do what. for example, let’s take a real time example. A typical supermarket story here, the sales boy/girl do help the customer in finding the products, house keeping person will ensure the environment is clean, person at billing section does only the billing job. So similarly, while deploying network you must define who is going to do what?. ( Read this transaction flow in Hyperledger official document to get better understanding : Click here of what’s happening when a transaction is invoked) ..So in a network, we have 4 components(Orderer, Peer, CouchDB, CA) and who is going to perform these roles, will be decided and respective identity/access will be generated.

For instance, when new joinee is joining the organization(company), we provide him/her access card/identity card right?, similarly in fabric network we must define identity, which will be provided by MSP(membership service provider). To do that job, we use the binary file cryptogen.

Now, let’s talk about configtxgen .. again a real time example of super market, the moment the day starts they create one dummy billing ID in order to ensure billing application runs fine & also for goodwill. This dummy billing ID doesn’t add any value in fact, but they starts the day with dummy billing ID to start the billing number for the day. Similarly in blockchain, we have something called “Genesis” block(The configuration block that initializes a blockchain network or channel, and also serves as the first block on a chain).. I will not say this as Dummy, but very crucial block in a chain, which actually indicates “Starting” point of block chain. Configtxgen actually does this job, it creates genesis block for the network.

Now it’s time for configtxlator , I can relate this with “Optimizer or Upgrader”. For instance, you have the network setup with channels, when you want to modify the channels or update genesis block, then you need to edit the same, configtxlator file helps you to first convert the block into human readable form & once you make necessary changes, it commits & upgrade the same.

configtxlator: standard usage is expected to be:

  1. SDK retrieves latest config
  2. configtxlator produces human readable version of config
  3. User or application edits the config
  4. configtxlator used to compute config update representation of changes to the config
  5. SDK submits signs and submits config

Peer (straight forward) , it helps to perform set of actions. For instance, using Peer Channel subcommand, you can add the peer to specific channel, Peer Chaincode helps you to deploy chaincode to the peer & so on.

The fabric-ca-client command allows you to manage identities (including attribute management) and certificates (including renewal and revocation).

Orderer using this binary, we can start the orderer. It will use the generated “Genesis block”. If it’s not available, it generates new genesis block using SOLO orderer profile.

Having all these six binaries covered, it is very important to understand in which situation we use each. Let’s begin with fresh network, absolutely fresh network & we are going to setup using above binaries..and define those 4 components.

Let’s meet in my next article.. If you have any questions/comments, please post to discuss.

if you like reading this series, please don’t forget to CLAP & share with others. Any concerns/comments or any different thoughts on how above binaries work, please feel free to share in comments section..

See you in next article, shortly..

Tags:applications of blockchain, argo blockchain news, argo blockchain share price lse, argo blockchain shares, australia gets government app with blockchain, australia ndis gets app with blockchain, australia ndis gets government with blockchain, azure blockchain service september, best blockchain courses, blockchain australia, blockchain conference, blockchain developers, blockchain education, blockchain finance, blockchain future, blockchain gala games 5b 2b 1b, blockchain gala games 5b nfts 1b, blockchain games 2021, blockchain games list, blockchain healthcare, blockchain job cuts is shell its, blockchain miners club, blockchain programming language, blockchain strategy, blockchain technology definition, blockchain technology in hindi, blockchain wallpaper, dao blockchain, defi blockchain, download blockchain, enterprise blockchain, forum blockchain, graph blockchain, graph blockchain stock, harmony blockchain, how to create a blockchain, invesco blockchain, kickstarter blockchain, layer 1 blockchain, layer 1 blockchain list, ledger in blockchain, mastering bitcoin: programming the open blockchain, metaverse blockchain, microsoft azure blockchain september, microsoft blockchain september mayfoleyzdnet, microsoft is shutting down azure blockchain, microsoft is shutting down its blockchain, ndis gets government app with blockchain, nonce in blockchain, partisia blockchain, provenance blockchain, riot blockchain aktie nasdaq, safemoon blockchain, samsung blockchain, spare blockchain, stellar blockchain, tezos blockchain, understanding blockchain, what does blockchain mean

Post navigation

Previous Post: Hyperledger: How to build your own docker container for Node.js Web app (Ubuntu 16.04)
Next Post: Step by Step Approach to create DAPP—using Ethereum, ReactJS & IPFS — Part 1

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2022 Zuiver. Sources: Top Blockchain Companies-Top Blockchain development Tools-Top Blockchain Platforms

Powered by PressBook Grid Dark theme