Blockchain

What is Hyperledger Fabric | Hyperledger Fabric Tutorial | Blockchain Tutorial | Edureka Rewind



๐Ÿ”ฅ๐„๐๐ฎ๐ซ๐ž๐ค๐š ๐๐ฅ๐จ๐œ๐ค๐œ๐ก๐š๐ข๐ง ๐‚๐ž๐ซ๐ญ๐ข๐Ÿ๐ข๐œ๐š๐ญ๐ข๐จ๐ง ๐“๐ซ๐š๐ข๐ง๐ข๐ง๐  ๐‚๐จ๐ฎ๐ซ๐ฌ๐ž : https://www.edureka.co/blockchain-training (๐”๐ฌ๐ž ๐‚๐จ๐๐ž: ๐˜๐Ž๐”๐“๐”๐๐„๐Ÿ๐ŸŽ)
This Edureka video on “What is Hyperledger Fabric?” will guide you through the fundamentals of Hyperledger with examples.

๐Ÿ“ข๐Ÿ“ข ๐“๐จ๐ฉ ๐Ÿ๐ŸŽ ๐“๐ซ๐ž๐ง๐๐ข๐ง๐  ๐“๐ž๐œ๐ก๐ง๐จ๐ฅ๐จ๐ ๐ข๐ž๐ฌ ๐ญ๐จ ๐‹๐ž๐š๐ซ๐ง ๐ข๐ง ๐Ÿ๐ŸŽ๐Ÿ๐Ÿ’ ๐’๐ž๐ซ๐ข๐ž๐ฌ ๐Ÿ“ข๐Ÿ“ข
โฉ NEW Top 10 Technologies To Learn In 2024 – https://www.youtube.com/watch?v=vaLXPv0ewHU

๐Ÿ”ด Subscribe to our channel to get video updates. Hit the subscribe button above: https://goo.gl/6ohpTV

๐Ÿ”ด ๐„๐๐ฎ๐ซ๐ž๐ค๐š ๐Ž๐ง๐ฅ๐ข๐ง๐ž ๐“๐ซ๐š๐ข๐ง๐ข๐ง๐  ๐š๐ง๐ ๐‚๐ž๐ซ๐ญ๐ข๐Ÿ๐ข๐œ๐š๐ญ๐ข๐จ๐ง๐ฌ

๐Ÿ”ต DevOps Online Training: http://bit.ly/3VkBRUT
๐ŸŒ• AWS Online Training: http://bit.ly/3ADYwDY
๐Ÿ”ต React Online Training: http://bit.ly/3Vc4yDw
๐ŸŒ• Tableau Online Training: http://bit.ly/3guTe6J
๐Ÿ”ต Power BI Online Training: http://bit.ly/3VntjMY
๐ŸŒ• Selenium Online Training: http://bit.ly/3EVDtis
๐Ÿ”ต PMP Online Training: http://bit.ly/3XugO44
๐ŸŒ• Salesforce Online Training: http://bit.ly/3OsAXDH
๐Ÿ”ต Cybersecurity Online Training: http://bit.ly/3tXgw8t
๐ŸŒ• Java Online Training: http://bit.ly/3tRxghg
๐Ÿ”ต Big Data Online Training: http://bit.ly/3EvUqP5
๐ŸŒ• RPA Online Training: http://bit.ly/3GFHKYB
๐Ÿ”ต Python Online Training: http://bit.ly/3Oubt8M
๐Ÿ”ต GCP Online Training: http://bit.ly/3VkCzS3
๐ŸŒ• Microservices Online Training: http://bit.ly/3gxYqqv
๐Ÿ”ต Data Science Online Training: http://bit.ly/3V3nLrc
๐ŸŒ• CEHv12 Online Training: http://bit.ly/3Vhq8Hj
๐Ÿ”ต Angular Online Training: http://bit.ly/3EYcCTe

๐Ÿ”ด ๐„๐๐ฎ๐ซ๐ž๐ค๐š ๐‘๐จ๐ฅ๐ž-๐๐š๐ฌ๐ž๐ ๐‚๐จ๐ฎ๐ซ๐ฌ๐ž๐ฌ

๐Ÿ”ต DevOps Engineer Masters Program: http://bit.ly/3Oud9PC
๐ŸŒ• Cloud Architect Masters Program: http://bit.ly/3OvueZy
๐Ÿ”ต Data Scientist Masters Program: http://bit.ly/3tUAOiT
๐ŸŒ• Big Data Architect Masters Program: http://bit.ly/3tTWT0V
๐Ÿ”ต Machine Learning Engineer Masters Program: http://bit.ly/3AEq4c4
๐ŸŒ• Business Intelligence Masters Program: http://bit.ly/3UZPqJz
๐Ÿ”ต Python Developer Masters Program: http://bit.ly/3EV6kDv
๐ŸŒ• RPA Developer Masters Program: http://bit.ly/3OteYfP
๐Ÿ”ต Web Development Masters Program: http://bit.ly/3U9R5va
๐ŸŒ• Computer Science Bootcamp Program: http://bit.ly/3UZxPBy
๐Ÿ”ต Cyber Security Masters Program: http://bit.ly/3U25rNR
๐ŸŒ• Full Stack Developer Masters Program: http://bit.ly/3tWCE2S
๐Ÿ”ต Automation Testing Engineer Masters Program: http://bit.ly/3AGXg2J
๐ŸŒ• Python Developer Masters Program: https://bit.ly/3EV6kDv
๐Ÿ”ต Azure Cloud Engineer Masters Program: http://bit.ly/3AEBHzH

๐Ÿ”ด ๐„๐๐ฎ๐ซ๐ž๐ค๐š ๐”๐ง๐ข๐ฏ๐ž๐ซ๐ฌ๐ข๐ญ๐ฒ ๐๐ซ๐จ๐ ๐ซ๐š๐ฆ๐ฌ

๐Ÿ”ต Post Graduate Program in DevOps with Purdue University: https://bit.ly/3Ov52lT

๐ŸŒ• Advanced Certificate Program in Data Science with E&ICT Academy, IIT Guwahati: http://bit.ly/3V7ffrh

๐Ÿ”ต Advanced Certificate Program in Cloud Computing with E&ICT Academy, IIT Guwahati: https://bit.ly/43vmME8

๐ŸŒ•Advanced Certificate Program in Cybersecurity with E&ICT Academy, IIT Guwahati: https://bit.ly/3Pd2utG

๐Ÿ“Œ๐“๐ž๐ฅ๐ž๐ ๐ซ๐š๐ฆ: https://t.me/edurekaupdates
๐Ÿ“Œ๐“๐ฐ๐ข๐ญ๐ญ๐ž๐ซ: https://twitter.com/edurekain
๐Ÿ“Œ๐‹๐ข๐ง๐ค๐ž๐๐ˆ๐ง: https://www.linkedin.com/company/edureka
๐Ÿ“Œ๐ˆ๐ง๐ฌ๐ญ๐š๐ ๐ซ๐š๐ฆ: https://www.instagram.com/edureka_learning/
๐Ÿ“Œ๐…๐š๐œ๐ž๐›๐จ๐จ๐ค: https://www.facebook.com/edurekaIN/
๐Ÿ“Œ๐’๐ฅ๐ข๐๐ž๐’๐ก๐š๐ซ๐ž: https://www.slideshare.net/EdurekaIN
๐Ÿ“Œ๐‚๐š๐ฌ๐ญ๐›๐จ๐ฑ: https://castbox.fm/networks/505?country=IN
๐Ÿ“Œ๐Œ๐ž๐ž๐ญ๐ฎ๐ฉ: https://www.meetup.com/edureka/
๐Ÿ“Œ๐‚๐จ๐ฆ๐ฆ๐ฎ๐ง๐ข๐ญ๐ฒ: https://www.edureka.co/community/

Please write back to us at sales@edureka.co or call us at IND: 9606058406 / US: +18338555775 (toll-free) for more information.

Welcome to adura this is an today what we are going to do we will start with hyperledger we will see that that how do you compare the traditional blockchain and a business Network what is hyperledger Project what is the architecture how do you achieve consensus in a hyperledger network what

What are the different API and application models that are available what are the different kinds of network topology that you can have in hyperledger what are the different projects so hyperledger is a basically name of a common group and it has got multiple projects or multiple blockchain

Stacks fabric indiea s and what is the bus Network deployment on hyperledger composer playground these are the topics that we will be covering in this module so let’s first try to understand you know what is hyperledger how does it differentiate from Bitcoin and ethereum that we have already covered and what

Are the core features and why do we need hyperledger basically you know as I mentioned earlier as well the blockchain primarily is a technology where multiple participants interact with each other and come to a common agreement to achieve the consensus and update the distributed Ledger this concept initially was limited to the public

Domain where you know you create a system where anyone can come subscribe the service become the member and have the copy of the database with himself or herself and then start transacting onto the system and majorly it was for the financial industry or cryptocurrencies now when it was seen that you know it

Can be extended Beyond financial services cryptocurrencies and you know maybe it can be in corporated within an organization or within a certain set of people rather than giving the public public access to everyone because you know especially in the business scenarios you cannot give the access of

Your data to all the participants so that’s when these permissioned or private blockchains came into the existence already I gave you one example of Koda another one is Quorum you know which is quite similar to ethereum but you know the leader in this domain of permissioned and private blockchain is

Hyper leer now what is hyperledger hyperledger is basically a group of products which are designed by a open-source company called as Linux Foundation Linux Foundation is a open- source company that gave birth to all these standards of permissioned blockchain so hyper Leger has got many products like you know there is a hyper

Leger fabric hyper Leger Sawtooth hyper Leger Indie hyper Leger bur hyper Leger many products are there caliper etc etc but all these products have their own own different features based on you know which you will use them but the most famous among these are hyperledger Fabric and hyperledger sth these two are

Also developed by multiple organizations so lenux Foundation is basically a group of more than 100 companies I think 125 members are there and all top companies in the world like IBM Intel enture Dell Microsoft they are all part of it and they are jointly developing these standards and because so many corporates

And so many big names are associated with these so therefore we see very frequent revision of these standards the one which is documented in urea is I think version6 and it was not long back this version was the Prime version but you know now it has gone from 6 ver 2.0

Which was released I think a few weeks back only the growth and development of hyperledger based standards is enormous because there are a lot of Industry experts which are working in this area and the due attention on these blockchain technology is huge because they are the ones which are primarily

Used in industry so if you will think about creating any kind of a blockchain which is generalized can be used by anyone in the public you will probably use ethereum to create it because it’s simple it is easy to create and it is very simple to scale and deploy

Hyperledger you know if you create a public network it will add lot of complexity which is not required in a public network and it will not be easy to deploy hyperledger is much more complex than any other blockchain stack that is available both in terms of creating the smart contract creating a

Network deploying the network making it live for the customers doing the testing it’s much much more complex than any other blockchain stack that is available so generally people reach out to hyperledger only after after doing ethereum Koda Corum you know all these fundamental Stacks so once they are well

Vered with it then only they touch upon hyperledger because it is considered much more complex than any other this thing so hyperledger is basically used for business private and permission Network as we have already discussed one of the key feature in any kind of a business network is that you know only

The valid users can enter that business Network so you need to have components that enable user IDs and their authentication all the users which are becoming the part of this network needs to be authenticated and entity in hyperledger with authenticates these members is called as membership service

Provider and not only the users even the peers that are going to get added will also need to be authenticated each and every entity whether it’s a pier whether it’s a user whether it’s an application everyone will need a authentic entry before they can get themselves registered into the system so each one

Will need a certification and MSP uses the certification Authority which is also built in in hyperledger fabric to get these certificates and give these certificates to various entries so there are two things one is your MSP membership service provider which basically keeps track of who needs to

Access what what privileges can be given to and who all can access the network and then there is a certification Authority which basically issues the certificate on the request of MSP so that those certificates can be given to the respective nodes peer or individuals who are becoming the part of the network

One of the key differentiator is from ethereum and Bitcoin is there is no cryptocurrency in hypa so there is no concept of cryptocurrency there is no transaction no gas no ether nothing of that sort in hyperledger even if you want to create it is not easy to

Incorporate the crypto C to currency so generally if you want to incorporate a system where you know you have a cryptocurrency or you need a tokenization you generally wrap it up using the ethereum plugins that are available in hyper leer so for implementing the tokens in a business Network you generally depend upon

Ethereum or Quorum that and then you integrate it along with hyperledger fabric those kind of integration tools and mechanisms are available by which you can integrate hyperledger with ethereum for specifically for using tokens or cryptocurrencies one unique aspect of hyper leer is that you know each and every entity is modular so it’s

Kind of a plug-in play so for example there is a default certification Authority that comes with hyperledger fabric if you want to use your own certification Authority it’s just a plug-in play kind of a system in a configuration file you can mention that you know I want to use this

Certification Authority rather than using the default one similarly by default if you given a bantine fall tolerance consensus algorithm but you want to use some other consensus algorithm of your choice you can just take the original one out and put your own consensus algorithm so if you see

That way everything is Plug and Play so therefore everything is modular in nature you can just take out any default component and put in any component of your choice depending on what business problem you are trying to solve the next thing which is different is consensus consensus as I mentioned the way it

Works in hyperledger is completely different than you know the way it works in ethereum and Bitcoin know there is no concept of proof of work there is no concept of proof of stake generally the consense is driven by the individual nodes who are responsible to authorize that transaction and those individual

Noes are known as endorsers and the distribution of the blocks are given to the special nodes which are called as orderers so the way consensus is achieved in a fabric network is is completely different the way it is achieved in ethereum or Bitcoin and the key reason you know we have a much

Simpler consensus here is because it is a private Network where all entities are known so I already know that you know whom can I trust to basically authorize this transaction for example in a land registry environment I know that you know this node is a regist node and he

Is the authorized person for signing of a registry or to authorize a land deal similarly in a medical domain this particular node is an authorized doctor he can put my or he can update my medical records with a new recommendation or with a new medical test so similarly all authorized users

Which are authorized to initiate the transaction or which are authorized to validate the transactions are given this responsibility of endorsing the trans and those are called as endorser notes so we have endorsers we have orderers and then we have committers so there are three different kinds of nodes which are

Available then there is a concept of Channel which is not there in any other kind of a blockchain within a single blockchain Network okay you can run multiple networks together so for example there are say five six different departments in an organization one is your finance department another is your

Hi Department the third is your operations department and although you know there are some entities which can exchange information among themselves but not all entities should be seeing that information for example if HR can only disclose the salary information to the manager of the operations team and

Not to the entire operations team so there can be selective sharing of the information and then there can be nodes which are part of multiple channels see for example the HR is resignated as one channel the operations is designated as one channel there can be nodes which are

Part of both the channels which can have the information both from the operation side and as well as from the HR side and then the operations team will not know that you know this data is also existing with this particular node the Linux Foundation is the body which is running

This hyperledger set of Standards so if you see this is the main website of hyper Leger which says advancing business blockchain adoption through Global open source calibration and you know this is getting changed day by day even if you see this site you know you will find daily new things coming up

These are the project these are also increasing day by day the one that we will be concentrating is hyper Leger fabric this is the most widely used hyperledger instance that is used for a permission or a private Network the next one which is famous is Sawtooth the rest

All are rarely used you can see that you know this is the hyperledger website these are the various products then extensive documentation is available for all the product so if you select for example h fabric you can go to various videos you can go to various kind of

Tutorials data sheets some of the open source projects which are going on where you can directly participate you can download the code you can see you can build everything from scrap so this is a very informative website that they have created and if you go to build your

First Network it will direct you to the documentation of Hyer fabric so the documentation is also very detailed it tells you each and everything about how the architecture looks like what are the different entities in a hyperledger network how do they interact with each other so it’s a very very detailed

Architecture let me try to explain you using the diagram let’s say this is my blockchain network now I can have different things apart from the blockchain network I can have client application and I can have different users as well like for example user one user two Etc let’s say this is the

Typical scenario where you know I have multiple users I have a client application that are accessed by multiple users based on their credential and then this is my blockchain network where all the nodes are connected with each other in distributed manner the fundamental of blockchain will still remain intact these nodes will be

Connected with each other so now what will happen is there are some additional entities here like you know one is your MSP MSP or membership service provider so what it will do is it will keep track of you know what access is required for home for example it will basically

Provide the authentication that you know first of all what all members are part of my network is this node part of my network is this node part of my network in case all these nodes are part of the network they will need to get the credentials from membership service

Provider all of them will need to register to the membership service provider and membership service provider will give them the credentials which they will need to register before they become the part of the network and not only the nodes even the client application will also need to do the

Same and even the users will also need to do the same so MSP is one body which is giving you the credentials to basically join the network and what level of rights do you have can user one initiate a certain type of transaction say for example if in a medical domain

You are a nurse can you actually authenticate a medical record you cannot so what kind of credentials each user has will be stored in a membership service provider this membership service provider takes the help of certification Authority or CA basically provide the certifications to different members so

For example if it finds a client application as certain attributes accordingly it will ask for the certificate from CA and it will give it back to the client application so that the client application can authenticate itself and do the transaction that it is authorized to do now considering that

This is well understood let’s remove these lines from here now in a typical scenario what will happen is that you know your client application will basically interact with the blockchain network and in a generalized scenario what will happen is that it will send the request or it will send the

Transaction to a particular node and then it will get distributed to all the nodes that’s how it basically happens in Bitcoin and ethereum in hyperledger fabric it does not happen like this so what happens is in case client application has a request for a particular transaction it only sends it

Across to a certain nodes and those nodes are called as endorser nodes endorser nodes are those nodes which basically endorse any transaction endorse transactions means they validate whether the transaction is correct or not so what will happen is let’s say in my network these two are my endorser

Nodes you can have any number of endorser nodes in your network it depends on what kind of endorsement policy you have for example if somebody is writing a medical record in your blockchain network you can have two or three doctors validating it or maybe along with a doctor you want to get it

Validated with your medical insurance company as well whether you know the correct medical record is getting upgrated or not so depending on how many endorsers what all endorsers you want you can have as many endorsers in the network so let’s say in this particular registration this is endorser and this

Is also the endorser now based on how many endorsers you have you can have different kind of endorsement policies now what is endorsement policy endorsement policy is that you know how endorsers will endorse the transactions for example if there are two endorsers I can have a endorsement policy that even

One of them is able to verify that the transaction is correct I will Mark that transaction is complete I can have endorsement policy that you know both of them needs to sign this transaction as valid transaction then only I will accept this transaction as complete so depending on what kind of endorsement

Policy you write based on which your transaction will be accepted or rejected so what happens is that you know client application will send the request to these endorsers endorser one and endorser two it will send the request that okay I want to perform a certain transaction say the name of the

Transaction is T1 say this transaction is basically updating the land record there is a sale request of a particular land record and client application is sending that request to the endorser now what endorser will do endorser will check the database so endorser will have the blockchain database and how it will

Check the database it will run the smart contract now the smart contract in hyperledger is called as chain code so you will not hear the term smart contract in hyperledger fabric the term which is used for smart contract is chain code so what endorser will do is

It will run the smart contract on this transaction it will see whether this transaction is a valid transaction or not for example if there is a land sale request it will check from the existing database whether this land is qualified for the sale or not whether the price

Which has been mentioned in the transaction is the valid price for that particular land or location whether this is eligible to be sold out or not whether it is a industrial land or a domestic used land so all these kind of things can be checked by the endorser

Noes and they will reply with the read write set so they will reply that okay whether this is a valid transaction or not they will get the transaction request and both of them will reply that with the validity of that transaction so they will reply with the read write data

They will tell that okay this looks like a valid transaction and you can update it into the Ledger but it has still not been updated Into The Ledger not even in The Ledger of endorser endorsers are just letting the client application know that you know this is

My endorsement result so we have learned three different terms like MSP certification Authority and then endorsers now the client application get these endorsed transaction along with the sign of endorser a digital signature that you know this particular endorser has signed this transaction now there is another set of special nodes in

Hyperledger which are called as a orderers and orderers are represented like this so basically ordering is represented as a service but they are nothing but they are special nodes so this is how you represent orderer so now what client application will do is it will send these validated transactions

To the orderer these are all validated transactions so just remember one thing that in hyperledger network the smart contract is only running on endorsers if smart contract is not running on orderers it is not running on these remaining notes these remaining notes are called as committer noes smart

Contract is only running on endorser noes and the rest of the notes only have the blockchain database they are not running the smart contract so the endorser notes once verify that the transaction is correct it will give it to the ordering service ordering service what it will do is ordering service will

Create the block it will create the block from the transactions and it will distribute the block to the network so it will basically send it across to various nodes that are connected including the endorsers it will send this transaction to all the connected nodes there is a dedicated ordering

Service which will keep waiting for the transactions from the client application and they will create the block from the transactions and they will distribute the block there can be different kind of ordering service for example there are three prominent ordering service that we use so they are Solo ra and Kafka these

Are the three prominent ordering service that you generally use solo is where you just have one node which is creating the blocks and distributing it across raft and Kafka are fall tolerant Services where you know you have multiple nodes creating the blocks running some kind of a bantine problem algorithm on those

Transactions before getting them distributed to the entire network now when these blocks are received so these blocks will be received by endorser also these blocks will be received by these nodes now these nodes are known as committer blocks what they will do is they will get the block from ordering

Service they will verify whether the transactions that are part of that block are endorsed by the endorser or not whether they have correctly been distributed by the ordering service or not and once they verify this information they will update their blockchain data datase and you know the transaction will be committed to the

Blockchain so this is the overall flow of your transaction in a hyperledger fabric Network you have endorser you have orderer you have committer you have client application you have membership service provider you have certification Authority you know all these things are integral part of any hyperledger fabric

Architecture that you will hear of and what you are achieving is you are achieving a throughput of 1,000 TPS in CVM also you are able to achieve maximum throughput of 300 TPS 300 transactions per second in hypera fabric you can achieve more than 1,000 transactions per second worth of speed there is no

Overhead anywhere you don’t need to deploy smart contracts at all the nodes the minimum database is kept in the blockchain database so again there are three categories of database here one is your blockchain database second is your world State information World State database World State database can be

Your couch DV or level DB and third is your file system based database which are your external storage that can have your ipfs or toj so these are the different kinds of database that you can have in hyper fabric your blockchain database is the set of transactions or

The blocks your world State database is the recent state of all those transactions so World estate is also updated when you update the blockchain database transaction and then you can have the individual files store in different kind of distributed file system like ipfs or storj and they can be connected with the blockchain

Database because we can store the signature of these files in our blockchain Network this is how your fabric networks look like so smart contract is known as chain code then uh each and every protocol so the messaging protocol also is Plug and Play like you know you have whisper and others so that

Is also plug-in play or this algorithm of creating the hash is also plugin play so you can have any kind of an algorithm that you want now let’s try to understand the concept of Channel now there can be some nodes which are part of basically two different networks so

For example if this node is also linked to so let’s say this is my red Channel this entire network is my red Channel it has its own database say for example DB1 a blockchain database each and every node will have that particular database each will be having this D1 now there

Can be other networks which might need these nodes maybe this is a committer node here this might be endorser node in some other network so you can take an example of a if you have two different blockchain networks or two different hospital chains which are not interacting with each other and there

Are doctors which are associated with both the networks they will have the common points in both the networks right so they will be part of multiple channels so what is happening in the latest versions of hyperledger fabric is there are lot of new Concepts that have also come along with you know whatever

We have covered for example there is a concept where you know this ordering service can only distribute the transaction to certain nodes and then those nodes will distributed further to the entire network because in case you have a large Network say hundreds of noes are connected cannot give the entire load to the

Ordering service or you will need to build a very heavy ordering service to basically distribute the blog there are newer and newer Concepts coming in the latest releases of hyperledger fabric now one more thing that you need to basically keep in mind is that you know whenever you are designing a business

Network you need to keep in mind three things first is your asset asset is basically what you are looking to transact your medical record can be asset your land record can be an asset your gold can be an asset your money can be an asset your intellectual property

Can be an asset so hyper Leger fabric lets you define the asset in ethereum you cannot Define the asset everything is measured in terms of ether so how many ethers you are transferring in the transaction is basically your asset but in hyperledger fabric you can Define the

Asset in a structure that okay this is my ass asset my land record which means my house number my registry number all those things can come as a asset whenever you are designing a blockchain network especially hypa fabric you need to First think of that you know what

Assets are part of this network second thing is participants so when you know that okay these are the assets then you know what all participants will be there in my network so for example in a medical domain application your patient is a participant doctor is is a participant your insurer is a

Participant your drug Supply person is a participant your research organization which are doing medical research is also a participant all these are participants and you will need to Define all these participants when you are defining the network so in the nodejs there are named structures which are given to define the

Assets and to define the participants similarly you will also need to define the transactions transactions is basically basically what all transactions can take place between these participants catering to these assets so for example there can be transaction where a land is getting transferred from one owner to another

Owner or where the medical record is getting updated for a particular patient so I’m giving you these two examples because you know these are easy to understand you can think of any other example basically you know where the some kind of a e-commerce trade is happening any kind of a transaction

That you expect this network to perform you will need to Define it under transaction head so these three are different structures that you will need to create in your model file before you define your blockchain network then the fourth thing is events so when you want to inform about these transactions

Taking place to the third parties or to your ji application then you write events and in the event handler you mention that what information you want to send it across the events is similar to you know what we did in ethereum and then you have transaction Handler functions now these transaction Handler

Functions are basically your chain code or your smart contract and uh they are written in nodejs they’re primarily written nodejs but you know the good thing about hyperledger is it gives you sdks in almost all programming languages people prefer to write it in nodejs because it is simple to do so in nodejs

Yes but you can also write it in Java you can even write it in C++ you can write it in Python all those sdks are available you can just need to plug in play and integrate that SDK and start using your language that you want to implement in your smart contract so this

Is basically you know some basic theoretical concepts of hypa fabric now the key problem is that you know in a traditional Network they are sharing information with each other in a inefficient expensive and a vulnerable way maybe by emails Maybe by unsecure transactions and then there is a problem

Of reconciliation Etc which is solved by using the blockchain based Network where you have the consensus Provence immutability and finality blockchain I think we already know that we are able to create the highly efficient distributed business Network we can do the codifications of contract compliance and certifications we redefine how the

Trust is embodied if efficient and accessible Marketplace built on blockchains will accelerate the exchange of information and value now these four things are key characteristics of blockchain for business one is your shared Ledger shared Ledger is nothing but your distributed Ledger which is same as any other blockchain Ledger

Where you know you are storing all the transactions another is your smart contract which we call it as chain code the third is your privacy so priv a basically means that your transactions are secured your data is only visible to the person who is authorized to view that information so although you can

Keep a database of all the information but you know it should only be visible to the person who is authorized to see and use it so the concept and notion of privacy is really really important and because of this privacy concept only we have this concept of multiple channels

Uh private data collections Etc in hyper Leger Fabric and then you have this notion of consensus where all parties needs to agree so there are different kind of in senses algorithms that are being used in hypure fabric now what is Hyer Hyer is the product coming from Linux Foundation Linux Foundation is one

Of the biggest body in the world which promotes open-source products and hyperledger is one of their projects for creating a permission or a private blockchain so hosted by by Linux Foundation the experts at accelerating open technology development and Commercial adoption it is neutral and collaborative so anyone can become the

Member of the hyperledger Consortium and start to contribute to the network it gives you the industry standard blockchains by business for business hyper blockchain Technologies emphasize on supporting different levels of access sub Universal validation cost chain transaction and modularity the unique advantage of Hyer fabric is you know

These are some of the advantages one you have the permission membership you have Rich queries over immutable distributed ledger so you can write a query file I think I missed it here apart from assets transaction assets participant transaction events you can also Define query query is a special file where you

Can Define the SQL like queries of what information are you expecting from this blockchain at any point of time so those are your queries and those are rich in nature because you can define a simple equal like queries for the reporting purposes then you have the modular architecture supporting plug-in

Components so each and everything in hyperledger can be plugged out and plugged in based on your requirement protection of digital keys and sensitive data okay so you have separate modules for protecting your keys like you know your certification Authority is a module that is specifically kept for securing

Your keys you can have your own certification Authority if you don’t want to use the fabric CA or authentication data on need to know BAS performance scalability and level of trust and permission membership these are some of the key attributes of hyperledger FR now what are the problems with the existing blockchains especially

The blockchains that we have seen till now they have a limited throughput so you know they are giving the blocks after certain interval while you know in a business Network you generally expect real time output flow transaction confirmation same thing Anonymous processor so anyone can join and can try

To manipulate the network no settlement finality which is kind of incorrect because the public networks are also finalizing the transaction and putting it there but the transaction finality takes lot of time and lot of iterations which is not the case in hyperledger fabric then designed for cryptocurrency so conventional blockchains are designed

For cryptocurrency while in a permission business Network you need not have the requirement for having a token or a cryptocurrency obviously when you have the Open Standards which are used by anyone then you have poor governance so the standards are not modified as per the the new needs in the timely manner

While you know if you see hyperledger every two months 3 months you will see new releases coming in with a very new set of features and there is no privacy because it is public in nature so these are the goals so you can create a Enterprise grade open source distributed

Ledger framework and codebase to support business transactions provide neutral open and community-driven infrastructure supported by Technical and business governance build technical communities to support develop blockchain and shared Ledger PC’s so you know the communities for all these blockchain networks are very strong so you can subscribe to any

Of these tools any of these blockchain networks community and you will get the regular updates of the features that are getting Incorporated and in case you are facing off any issues you know you just need to go to participate and Jo join a working group so this is what you need

To do in order to join these communities you can follow them on various social networking platforms and you know just subscribe to various updates that are coming educate the public about the market opportunity so one of the key goals of Linux foundation and Hyper leer is also not only creating the different

Blockchain applications but also sensitizing the world that you know what is the importance of blockchain and how the future applications is going to look like so you will find find various channels in the YouTube which are basically promoting blockchain Technologies for different sectors that are created by Linux Foundation or

Hyperledger foundation so you should go through all those videos to basically understand that you know what are the different possibilities of applications using the hyperledger framework promotion participation of leading members of the ecosystem including developers service and solution so if your organization is a member there are different categories of member like you

Know you can be a gold member Platinum member accordingly you will have a say in creating the new standards if you are a standard alone developer then you will have a very limited sh although you can participate in the various development activities of new standards these are

The three categories and you know it has changed a lot since the creation of this slide so your infrastructure can be on your Cloud Foundry which is a cloud platform it can be on nodejs it can be an open container so one more thing which you I think need to know is that

You can create multiple peers multiple nodes multiple services in a Docker container environment you need not have the different node running like for example in ethereum if you want to have the real ethereum Network you will need to create the nodes that exist on different machines maybe on different

VMS but they have to be on different machines which are reachable from each other in hyperledger fabric even if you have 100 nodes you can have them on a single Machine by using the docker container model so Docker container allows you to basically create the instances of your nodes as a service on

Your single machine the infrastructure can run on Docker container model where you have different containers for your different peers as well as your ordering service etc etc then you have different Frameworks like your hyperledger Indie Indie is basically mostly used in in identity related blockchain implementations so taking your identity

Or digital Identity On A blockchain is one of the biggest use case of blockchain and hyperledger Indie is specifically created or specifically designed to create the identity based blockchain Network so if you want to create any kind of a kyc system you will probably choose hyperledger Indie as a

Platform rather than using any other hyperledger platform because it is customized to create such so I was mentioning about hyperledger indd so hyperledger indd is specifically meant for identity related issues if you want to create a kyc based system if you want to create a Adar based system probably

You will create those implementation in hyperledger IND hyperledger aoha is if you want to create a mobile based application and that to in C++ if you want to create a mobile based application then hyperledger is aoha is the best suited platform for that again this is not very widely used because

This is still in development phase it’s not very very stable but you know any kind of a mobile development is preferred on AA the primary contributor in hyperledger Sawtooth is Intel Intel uses a proof of Elipse time consensus algorithm in hyperledger Sawtooth which is only possible in case of Intel

Platforms so whenever you are having a Hy leer Sawtooth based implementation you will generally find the hardware as Intel platform so Sawtooth and Hyper Leger fabric are the key competitors in the market while hypera fabric is number one in terms of business application hyperia s tooth is number two Hyer

Fabric is promoted by IBM and Hyper sth is promoted by Intel but they are all open source so anyone can use anything so even Intel can use hyperledger Fabric and even IBM can use hyperledger sorts so that’s not a problem but the primary contributions are from these companies

And then hyperledger burrow again this is something which is rest of your hyper implementations are just uh kind of for study purpose or maybe for testing purpose or you know for research purpose the most common ones which are used are hyperledger fabric hyperledger Sawtooth hyperledger Indie and in some cases

Hyper Leger aoha and then there are different tools that are available like hyper Leger composer now hyperledger composer is one of the most widely used tool in hyperledger but now this tool has been deprecated by the hyperledger organization because the maintenance cost of this tool was really really high

So therefore no newer versions and no newer support of this tool is available and you will not even find this tool listed in the hyperledger website now so in the projects you will not find hyperledger composer while you know this was one of the most famous used for

Creating the hyper Leger smart contract so we will still use it because it’s part of your curriculum but it is no more supported by hyperledger Community hyperledger Explorer is just like your Bitcoin Explorer or ethereum Explorer where you can see different blocks getting created different transactions getting committed so hyperledger

Explorer is that similar to bitcoin Explorer and then you have hyperledger cell hyperledger cell is basically a tool where you can create your infrastructure components your peers your ordering services in a plug- andplay kind of environment rather than creating them from a command line or creating them through the configuration

File manually so it’s kind of a blockchain as a service kind of a platform although it’s not completely blockchain as a service it’s a very simplified form of blockchain as a service if you want to see blockchain as a service platform that you know then you should also be see seeing some of

The complex implementations which are available like IBM blockchain platform so that is currently number one blockchain as a service platform this is blockchain as a service platform so although hyper leer fabric is free but if you want to use it as a service and if you want to quickly create your

Network without getting into the hassles of modifying the configuration files setting up the various things and you know coming up with the problems and you know things like that then you know this is the way to go although this is a paid service but you can easily create your

Network in the matter of few clicks so this is kind of a visard which is available and you can just say next next next create your network deploy your smart contract and you’re ready to so this is one platform there are other platforms also which are available where

You can use blockchain as a service so this is the scope now this is the high level architecture of your hyperledger fabric so you have a membership service within the membership service you have the registration registration means you can register the users you can have the identity management what all level of

Access will those users have and then you have auditability where you can at any point of Time find the complete trace of any individual doing any activities in the network so what all transactions I have initiated what all transactions I have Windows etc etc at any point of time you can audit because

You are storing each and every transaction on a blockchain network so auditability is the default feature that comes with membership service so your membership is one layer then you know your chain code is another layer so chain code basically means your smart contract smart contract are basically deployed on your secure container using

The secure registry so smart contracts are also secured by the digital Keys before they are deployed and and they are deployed under the docker container model so that they are more secure and easy to deploy and then you have a blockchain layer where you know you have

A consensus manager you know all this you can see that you know they are modular in nature modular in nature means you can take out any component and bring in a new component very very easily so you have a consensus manager which basically tells you what kind of

Consensus algorithm you are going to use by default it is pbft you can put any other consensus model if you want to have proof of work you can put it there as well then you know there is a service for distributed Ledger how the various nodes will store the information so

There is a service for that there is a service for point to point protocol how the information will be exchanged from one perer to another Pier so that is also defined and then there is service for Ledger storage how the storage will look like that will be storing your

Database so all these are running as services that can be plugged in played so you can remove any of these service and put whatever service you want to put so membership service it provides you registration it provides you identity management where you can see the assurance and authorized disclosure of

Association of identities so if I am authorized to do a particular role in the network then you know somebody else will not be able to do it on my behalf because only I can do it and then there is a auditability because you know you have the complete trail of information

So you can always find the information okay now for Point too protocol it uses something like HTTP kind of a service where you know the messages are transferred from one node to another using HTTP protocol the data structures are optimized to provide efficient schemes for maintaining the world State

Replicated at many participants so as I mentioned it is basically stored as level DB or couch DB and different consensus algorithm may be plugged in and configured for deployment based on what you want the network to look like chain code this is basically or a smart contract piece of code that lets you

Interact with the network shared Ledger whenever a transaction is invoked on the network the function in the piece of chain code is called that reads and writes the value to The Ledger this is generally present only at the endorser notes and not at all the notes so chain

Code Services uses Docker to host the chain code so as I mentioned by default you have bisontine fault tolerance initial releases but you can always lug in play now this is something that you know we covered as a over all flow although it is not given in a

Comprehensive manner here you know we will go through this complete flow in a documentation that is available in my notes there are some very good articles present in the medium medium is a blogging site which keeps articles for various different Technologies so especially for fabric you know I find

Very good articles here so if you really want to see that you know how the fabric architecture looks like like you know you should actually refer to the diagrams which are there here you know this is how your typical architecture looks like you have a chain code

Installed at endorser nodes and then you can have different channels and you have the ledgers based on the complexity of your design you can have various kind of architectures this is the most complex one that you can imagine you have this ordering Services running here you have the endorser peers and committer peers

Here you have two different channels Channel a channel B you have couch DB you have label DB everything is there in order to understand the design completely or the architecture thoroughly but now what it says is that you know the client delivered the transactions to the pending pools so

Basically it reaches to the endorsing peers which is not given here but you know it goes to the endorsing peers now transactions are sent for application selectively apply the transaction so it’s smart contract is basically Ally applied and a return of proof of correctness or a change set is given

Back to the application so the endorser notes will run the smart contract or the chain code and they will return back with the proof of correctness whether the transaction is correct or not and what all data needs to be written it will give it back to the client and the

Client will again you know broadcast the ordered list of transaction through the ordering services so it will give it to the ordering service and ordering service will order the list of transactions along with the proof of correctness and the chain set to the other peers these other peers are known

As committer peers and these peers you know where you are running this smart contract are known as endorser peers and this is how you notify and then you notify the events to various clients or applications that are there the generalized hyperledger consensus process flow so ordering means basically

You know collecting the transactions and creating the block and doing various kind of of like Merkle tree creation hashing Etc and transmitting those blocks to the committer nodes and then validating is when you are validating the information that are coming in the nodes in form of the transaction so by

Logically separating these activities we ensure that any hyperledger framework can work with any hyperledger consensus module so again you know this is for the sake of plug-in play if you want to change the ordering service you can easily just remove one ordering service and introduce a new ordering service so

The way you have web 3 apis in ethereum for connecting with your front-end applications similarly you have the rest API interface in hyperledger fabric for connecting with the external applications or connecting with the user interface so rest API is basically similar to your web3 interface where you

Know you get a set of apis that you need to implement and then you can call the functions of your smart contract directly through those apis so SDK is available in go language JavaScript and Javas so it is not only in go Java JavaScript you can also have a SDK

Available in C++ nodejs various other languages additional programming languages can be added as necessary again this is something that you know we have already gone through identity addresses transaction chain code blockchain network storage event and there are apis available for interacting with all these entities in blockchain

You know if you want to break down an application into different logic so you know you can see that you know you have four logical models which are available one is your view logic where you connect your back end with your front end and so that is done through the help of rest

Apis in hyperledger Fabric and then there is a control logic which coordinates between UI data model Hyer apis so it is created in a modular way because so that you can easily write your portion so for example if you are a blockchain logic developer then you will essentially focus on writing your smart

Contracts if you are a data modeler then you will focus on basically writing what kind of databases we have in this blockchain network and what level of accesses are needs to be given on those databases the newer model of blockchain also supports a completely relational database to be incorporated along with

Your normal blockchain database so data modeling is getting really really important in blockchain based scenario also and then uh the control logic and view logic are basically Incorporated by your UI developers so that’s how your application looks like it can be hosted on any kind of a uh Hardware or network

So you can have it hosted on a cloud you can have hosted on cloud hosted multiple networks as as long as you know those nodes are connected with each other through some mechanism as long as you can ping one node from another node they can be part of different cloud-based

Network as well so multicloud network based on blockchain is again one of the most upcoming use cases in the market where most of the companies are now going on hybrid Cloud models they do not rely on one vendor or one Cloud for in their infrastructure applications and

Software so how do they interact between multiple Cloud vendors chain is one technology that everyone wants to use so multiple networks hosted on cloud you know they generally connected through blockchain and the participate hosted intranet or a singular Network or a or your default infrastructure that is available in your organization can also

Be Ed to deploy the network so it can be on cloud it can be on any kind of a hardware it can be on multicloud as well so aoha as I mentioned is most suitable for mobile and webbased development so if you’re creating a blockchain based application on your mobile then probably

You should use AOA because it gives you the direct implementation and design formats that can be easily used to create the mobile applications however if you see practically at least I have not seen any practical implementation coming out from aoha as yet in fact for that matter I have not seen a realistic

Application which is available on Google Play or your iOS platform which is blockchain based so most of the applications that are currently running are either web based application or running within a particular organization they are not on mobile as yet but hoha gives you the functionality of easily creating such application with respect

To the features if you compare it with the fabric and saw in that case it is SS nowhere and also because it uses C++ as a language which is a bit older language it does not have those kind of a functionalities available which you generally see in JavaScript or nodejs so

Why aoha if you want a simple blockchain based implementation to run from your mobile device then only you will be usinga otherwise you know you will not be using aoha So currently hyper project lacks an infrastructure project written in C++ thus limiting the potential developers who can contribute the C++ is

No more used widely Roa aims to rectify both these points bringing more developers while providing libraries and this is not currently a strong focus on user interaction or mobiles though both are necessary for realization of widespread use of DT so if you are a good C++ developer and if you want to

Write something on your mobile application based on blockchain then usea otherwise it is not a suitable candidate fabric is the most often used one so fabric is a permissioned blockchain network implemented in go programming language although the fabric network is implemented in go programming language but you know the smart contract

Can be written in any language where the SDK is available so made for enabling Consortium blockchains with different degrees of permissions so we have public we have private and we have Consortium so private and consortiums networks are primarily created using hyperledger modular architecture delivering High degree of confidence resiliency flexibility and scalability support

Plugable implementations and accommodate the complexity that exist across economic ecosystem delivers uniquely elastic extensible architecture distinguishing it from alternate blockchain Solutions how fabric works so fabric issues transactions with derived certificates that are unlinkable to owning participant all parties must register to proof of identity to the membership service in order to gain

Access the content of each transaction is encrypted to ensure only the intended participant can see the content so each and every content is digitally encrypted using the public private key as we have in Bitcoin and ethereum all transactions are secured private and confidential fabric can only be updated by consensus

Of the peers the transactions are executed without a cryptocurrency the events are structured as transactions and shared along with the different part participants it relies on the smart contract system where each paer of the network run in Docker container saw too Lake as I mentioned is primarily

Promoted by Intel it is designed to explore scalability security and privacy questions comped by original distributed ledgers so the key distinguished feature of Sawtooth from fabric is the consens is algorithm which is proof of elep time so there is a random chance that every minor gets for for mining the block and

It is based on the random number that is created by the Intel Hardware so it maintains the security of platform by allowing businessmen to create private blockchains it is additionally exceedingly modular this empowers Enterprise and consortia to settle an agreement choices that are best prepared to make now apart from this change it

Also has a concept of transaction family so while you can have hundreds of different transactions in Sawtooth Lake you can categorize the transaction or a group of transactions under one transaction family and it is stor those transactions in such a way that you can easily fetch up information of one

Transaction family without basically running multiple queries that is another Advantage the sort tooth lake has that you know it accumulates all the related transactions into a common group and it keeps track of how they are stored in the ledger so that they are easy to ret

D s l again you know I will recommend that you know if you should choose one among these like you know either hyperledger Fabric or hyper Leger s too L and you should try to gain a complete Mastery in either of these two platforms hyperledger Indie as I mentioned it is

Basically for identity based Solutions identity is one of the critical use case for blockchain implementation and indd is designed to basically store different kinds of identity be it your you know your your basically educational credentials your identity related credentials like your birth certificate your passport Etc all these things are

Easily Incorporated in hyperledger Indie in fact there is a product by IBM on digital identity which use hyperledger Indie this is the product that you know IBM has developed and this is developed using hyperledger Indie decentralized approach of identity management and I think it must be mentioned somewhere

That you know this is is developed using indd kyc you can see that you know how the kyc is happening here I’m not sure where it is mentioned but it is developed using hyperledger indd so you can even try this solution if you done that you know how it actually looks like

I’ll just ping it across the chat so IND is all about giving identity owners independent control of their personal data and relationship built so that the power of identity is a structurally part of the transactions made about that identity PIR identities not only prevent correlation but stop third parties from

Transacting without the identity owner taking part IND shares three important virtues with the internet no one owns it everyone can use it anyone can improve it validation is performed by the set of validator nodes running a modified Ron bantine fall tolerant problem all lenum so this is the consensus algorithm which

Is used in hyperledger indd it is called as Plum it is a variant of bantine fall tolerant protocol and Plum allowed for the group of servers run by the validators to come to a Collective Agreement about the validity and Order of events so each and every implementation you will find some unique

Consensus algorithm and that’s the key distinguishing factor of any blockchain it will have a different way of achieving the consensus now hyper Leger burrow this is more of a kind of test Network and this is if you want to run your ethereum contracts on hyperledger then you know this is a platform which

Is available so you can directly use your ethereum smart code smart contract and you can run it on a hyperledger framework using the hyperledger book but this is not very promising and this is not very often used so cell as I mentioned is basically blockchain as a

Service platform it can allow you to easily create your peers your orderers your committers your msps your certification authorities you can Define that you know which piece of Hardware will act as what what all software or what all chain codes needs to be installed where and basic data with

Regards to your health and analytics feature by default which are built in that you know how this peer is behaving how many transactions are endorsed all those things you can see on a hyperledger cello console if you want to use these tools you know there is no basically executable that is available

So what you will need to do is you will need to download the source code of this tool and then you will need to compile execute and then use it you will not get a binary to basically use these tools go to hyperledger and you go to hyperledger

Cell and same is for hyperledger Explorer also so if you go to hyper Leger hello you will see that you know you cannot download anything you can get get the code in the GitHub and from the code you will find the instructions to basically compile and run this tool then

Hyperledger Explorer is same as Bitcoin Explorer again in order to use this you will again need to compile this and run this you cannot get the executable or a binary Source directly installable this is Apper Explorer you will need to get the code this will direct you to the GI

Then you will need to compile and run it I think with that we have covered lot of ground today so that’s it for today thank you so much that

Write A Comment

Share via