SlideShare uma empresa Scribd logo
1 de 38
HyperLedger 
BlockChain Technology
BlockChain Technology
 Blockchain is a Decentralized, Distributed and immutable ledger
(group of transactions).
 A block is the ‘current’ part of a blockchain, which records some
or all of the recent transactions. Once completed, a block goes
into the blockchain as a permanent database. Each time a block
gets completed, a new one is generated. There is a countless
number of such blocks in the blockchain, connected to each other
(like links in a chain) in proper linear, chronological order. Every
block contains a hash of the previous block
 Each node (a computer connected to the network) gets a copy of
the blockchain, which is updated automatically.
Why Blockchain Technology?
 Made Transactions transparent and secure because of
using cryptography patterns
 No need of third Party to record transactions due to
decentralized nature of the technology.
 Transferred power to people
 High security to the data
 Transactions cannot be altered or deleted because it is
an immutable ledger.
Smart Contract :- computer protocol intended to facilate, verify or enforce the
negotiation or performance of contract
Mining :- Adding transactions to the ledger
Peers :- Each node (a computer connected to the network) is called peer
Endorser :-Peer will simulate the transaction and ensure that the outcome is both
deterministic and stable
Committer :-The peer will validate the integrity of a transaction and then append to
the ledger.
Endorsement policy:- Instruct a peer on how to decide whether a transaction is
properly endorsed
Transactions:- Transactions are submitted by a participant to affect the assets held in
the asset registries on the Hyperledger blockchain
Consensus:- An agreement made between peers or organizations
Quick Notes
What is Hyperledger   
 Hyperledger is an umbrella project of open source blockchains and
related tools started in December 2015 by the Linux Foundation to
support the collaborative development of blockchain-
based distributed ledgers.
 The “umbrella strategy” of Hyperledger incubates and promotes a
range of business blockchain technologies, framework, libraries,
interfaces, and application. Currently, Hyperledger is the host of the
following projects with frameworks.
 Hyperledger Fabric
 Hyperledger Sawtooth
 Hyperledger Iroha
 Hyperledger Indy
 Hyperledger Burrow
               HyperLedger Fabric
 Hyperledger Fabric is a blockchain framework implementation and one of the
Hyperledger projects hosted by The Linux Foundation.
 Fabric is distinguished as a platform for permissioned networks, where all
participants have known identities.
 It is built on a modular architecture that separates transaction processing into three
phases: distributed logic processing and agreement ("chaincode"), transaction
ordering, and transaction validation and commitment.
 Latest release of Hyperledger fabric is v1.0
Prerequisites:
 Docker - version 17.03.0-ce or greater
 Docker Compose - version 1.8 or greater
 Node.js - version 6.9.x or greater
 NPM – version 3.10.10.
 Go – 1.7x / JDK.
 Hyperledger Fabric platform-specific binaries.
• Cryptogen.
• configtxgen,
• configtxlator,
• peer
 Download the Docker images required for Fabric.
 Transaction lifecycle of Hyperledger Fabric
Chaincode
 Chaincode, also called the smart contract, is essentially the business
logic that governs how the different entities or parties in a
blockchain network interact or transact with each other. Invocations
of the chaincode result in sets and gets of the ledger or world state
 It is a piece of code that is deployed into a network of Hyperledger
fabric peer nodes that enables interaction with that network's shared
ledger.
 Chaincode runs in a secured Docker container isolated from the
endorsing peer process. Chaincode initializes and manages ledger
state through transactions submitted by applications.
ChainCode
Chaincode Development
 To start a development environment, we need to perform the following seven
tasks:
1. Build peer, orderer, and configtxgen executable binary .
2. Create genesis block for the orderer.
3. Start the orderer.
4. Start the peer.
5. Create channel configuration transaction and create a channel on orderer.
6. Join the peer to created channel.
7. Compile the chaincode and start executing.
8. Install and Instantiate the chaincode on the peer.
Working with chaincode :
 Download Docker images : fabric-tools , fabric-orderer, peer , fabric-ccenv
 Start the Network with docker-compose by creating a yaml file in terminal 1
which starts the orderer, peer .
 On terminal 2 Build and start the chaincode from chaincode interpreter
command line using go build .
 In other terminal 3 use the chaincode like install , instantiate , invoke and
query from the cli (command line interface)
 When we invoke chaincode in terminal 3 Transactions will be seen on the
terminal 2
 We can install more chaincodes in terminal 3 cli and verify in terminal 3.
Hyperledger Tools
       Set of collaboration tools for building blockchain networks that make it simple and quick
for development.
 Hyperledger Composer
 Composer is a tool for building blockchain business networks, It used to create
smart contracts and blockchain applications to solve business problems.
 Hyperledger Explorer
 Explorer is a tool which provides a dashboard viewing information about
transactions ,blocks and smart contracts available on the network.
 Hyperledger Cello
 Cello can build up a Blockchain as a Service (BaaS) platform quickly from the
scratch. It reduce the effort required for creating, managing and terminating
blockchains.
HyperLedger Composer
 Composer is a framework to accelerate the development of applications built on the
top of Blockchain platform such as Hyperledger Fabric
 Start from the business level :model network assets, participants & transactions
 Build Applications that use API's to invoke transactions, that create, update &delete
 Assets are transfer between participants
 Assets, participants ,transactions are recorded on Blockchain registries
 Can easily integrate blockchain with existing business processes & system records
 Modelling language: The Hyperledger Composer modelling language is used in the
business network definition to describe the assets, participants, and transactions in
the business network
Prerequisites:
 Operating Systems: Ubuntu Linux 14.04 / 16.04 LTS (both 64-bit), or Mac OS 10.12
 Docker Engine: Version 17.03 or higher
 Docker-Compose: Version 1.8 or higher
 Node: 8.9 or higher (note version 9 is not supported)
 npm: v5.x
 git: 2.9.x or higher
 composer-cli
 Yeoman generator
 composer-rest-server
Composer Architecture
Composer PlayGround
 The Hyperledger Composer Playground provides a user interface for the
configuration, deployment and testing of a business network
 Without development environment setup we can still develop business network by
playground
 In playground we can create or import network.bna file to generate or develop
business network
 Playground mainly deals with assets, participants and transactions
 If we do anything in the business network that will be save in transaction history
which cannot be change
 Define tab:- Define tab we can define and work with model for your business network
 Test tab:-can create assets and participants that were defined in the Define tab, and
test the functionality of your business network..
Developing Business network in playground
 Click Deploy a new business network  and give
 Click empty-business-network then Deploy the Business network
 To connect to our business network click Connect now under our business
network card.
 Then add model file,script file and Access control file
 Click Update to deploy the changes to our business network
 Click the Test tab to test our Business network
 The first thing we should add to our business network is to add  participants
and assests.
 Click the Submit Transaction button to submit our transactions
 We can see all transactions in our business network by Click  All Transactions
HyperLedger-Composer PlayGround
Deploying a business network to Hyperledger Fabric for a
single organization
Step-1 : Setup the development environment.
- https://hyperledger.github.io/composer/unstable/installing/development-tools.html
Step-2 : Build and start a Hyperledger Fabric network.
- http://hyperledger-fabric.readthedocs.io/en/release/build_network.html
Step-3 : Setup configuration tools cryptogen and configtxgen.
Step-4 : Create a connection profile use to connect with the Fabric network.
Step-5 : Locate the certificate and private key for the administrator.
Step-6 : Create a business network card that contains all of the information required to
connect to the business network. i.e, It includes Connection profile, Private key and
Certificate.
Step-7 : Import the business network card for the Hyperledger Fabric administrator.
Step-8 : Install Composer runtime onto all of the Hyperledger Fabric peer nodes,
this is nothing but a chaincode install operation. Here we specify the name of the
blockchain business network.
Step-9 : Start the blockchain business network, this is chaincode instantiate operation.
Step-10 : Import the business network card for the business network administrator.
Step-11 : Check that the business network has been deployed successfully.
Step-12: Generate a REST API based on the business network.
HyperLedger Composer Rest API
Deploying a Business network to Hyperledger Fabric for
multiple organizations
 Multiple organization administrators configure their insatnces of Hyperledger
composer to interact with the same channel in Hyperledger fabric.
 We can able to setup multiple organizations on single server or on multiple servers.
 Here Organizations are nothing but participants involved in the bussiness network.
 Each organization has its own peers to validate the transactions and orderer to confirm
transactions.
 All the peers related to the organizations which are in the same channel are involved
in validating transactions.
Multi-Organization Fabric Network.
Hyperledger Explorer
 Docker image with an web-UI explorer for a running hyperledger chain
 User friendly web application provides a dashboard for hyperledger to
view/query about blocks , transactions ,statistics and smartcontracts available on
network.
 Users will be able to query for specific blocks or transactions and view the
complete details.
 Future challenge is to integrate this explorer with other tools composer , cello for
displaying the information .
Installation Setup
 Requirements:
 Hyperledger Explorer works with Hyperledger Fabric 1.0. Install the following
software dependencies to manage fabric network.
 Install and invoke the transactions through CLI(command line interpreter)
which will display transactions in the dashboard.
o Nodejs 6.9.x or greater
o Mysql 5.7 or greater
o Docker 17.06.2-ce or greater
o Docker-compose 1.14.0 or higher
 Setup mysql database to save transactions , blocks and
chaincodes etc which are displayed in the dashboard.
 Fabric Network Setup where we create a channel with peers
and orderers in a single network
 Run the Blockchian Explorer which displayed the dashboard
in the localhost webpage.
Hyperledger Cello
Hyperledger Cello Overview
 Hyperledger Cello can build up a Blockchain as a Service (BaaS) platform
quickly from the scratch.
 Provides UI for add/delete hosts, create chain, view active chains, in
used chains.
 System status will give status of host type, host status , chain type, chain status.
 Cello should be deployed on multiple servers, at least 1 Master Node and 1
Worker Node.
 It gives instance response even with hundreds of chains or nodes.
Prerequisites
 Hardware: 8c16g100g
 Docker engine: 1.10.0~1.13.0 (Docker 17.0+ support is experimental)
 docker-compose: 1.8.0~1.12.0
Cello Environment Setup
 Master node setup.
 Worker node setup.
 Host setup(docker host or swarm).
Master Node
 Master node will run cello services(docker images) I.e.,
 Nginx(is used as a reverse proxy to improve web performance).
 Mongo( is used as the backend database).
 Cello-dashboard( Provides the admin dashboard).
 Cello-watchdog(Monitors the status of the system e.g., chains' health).
 Cello-restserver(Core engine to do the provision, orchestration and
management).
 It will manage the blockchain networks running inside the Worker nodes.
 It will add/manage/delete worker nodes.
 It can add chains for worker nodes.
Worker Node
 The servers to have blockchains running inside.
 worker nodes will be managed by the master node.
 Docker daemon should be in running.
 Blockchain network can be created with Hyperledger Fabric network,
a SawthoothLake or Iroha chain.
 Now we are using Hyperledger Fabric.
Hyperledger Cello Dashboard
Docker
 Docker is a tool designed to make it easier to create,
deploy, and run applications by using containers.
 Containers allow a developer to package up an
application with all of the parts it needs, such as
libraries and other dependencies, and ship it all out as
one package.
 So that developers need not worry about system setup,
they can focus on writing code.
 Docker is a bit like a virtual machine. But unlike a
virtual machine, rather than creating a whole virtual
operating system, Docker allows applications to use the
same Linux kernel as the system that they're running on
and only requires applications be shipped with things
not already running on the host computer.
Docker Swarm
 Docker swarm will connect multiple
nodes.
 A Manager node can add multiple
worker nodes.
 When a manager node runs a container,
the replicas of that container will be
added in worker node.
References
 https://hyperledger.github.io/composer/playground/playground-index.html
 https://hyperledger.github.io/composer/tutorials/deploy-to-fabric-multi-org.html
 http://cello.readthedocs.io/en/latest/
 https://github.com/hyperledger/cello/blob/master/docs/terminology.md
 http://hyperledger.org/
 http://hyperledger.org/projects/explorer
 https://github.com/hyperledger/blockchain-explorer
●
https://www.youtube.com/edit?o=U&video_id=EvICyArbFSs
Hyperledger Fabric and Tools

Mais conteúdo relacionado

Mais procurados

Blockchain Interview Questions And Answers | Blockchain Technology Interview ...
Blockchain Interview Questions And Answers | Blockchain Technology Interview ...Blockchain Interview Questions And Answers | Blockchain Technology Interview ...
Blockchain Interview Questions And Answers | Blockchain Technology Interview ...Simplilearn
 
Basics of Blockchain Technology
Basics of Blockchain TechnologyBasics of Blockchain Technology
Basics of Blockchain TechnologyNasir Bhutta
 
Hyperledger fabric 20180528
Hyperledger fabric 20180528Hyperledger fabric 20180528
Hyperledger fabric 20180528Arnaud Le Hors
 
Blockchain Intro to Hyperledger Fabric
Blockchain Intro to Hyperledger Fabric Blockchain Intro to Hyperledger Fabric
Blockchain Intro to Hyperledger Fabric Araf Karsh Hamid
 
Introduction to Blockchain and Smart Contracts
Introduction to Blockchain and Smart ContractsIntroduction to Blockchain and Smart Contracts
Introduction to Blockchain and Smart ContractsTechracers
 
Hyperledger Fabric Architecture
Hyperledger Fabric ArchitectureHyperledger Fabric Architecture
Hyperledger Fabric Architecture상문 오
 
PoW vs. PoS - Key Differences
PoW vs. PoS - Key DifferencesPoW vs. PoS - Key Differences
PoW vs. PoS - Key Differences101 Blockchains
 
Hyperledger Fabric Technical Deep Dive 20190618
Hyperledger Fabric Technical Deep Dive 20190618Hyperledger Fabric Technical Deep Dive 20190618
Hyperledger Fabric Technical Deep Dive 20190618Arnaud Le Hors
 
Blockchain Technology Explained | Blockchain Technology Tutorial | Blockchain...
Blockchain Technology Explained | Blockchain Technology Tutorial | Blockchain...Blockchain Technology Explained | Blockchain Technology Tutorial | Blockchain...
Blockchain Technology Explained | Blockchain Technology Tutorial | Blockchain...Simplilearn
 
Non-fungible tokens (nfts)
Non-fungible tokens (nfts)Non-fungible tokens (nfts)
Non-fungible tokens (nfts)Gene Leybzon
 
Write smart contract with solidity on Ethereum
Write smart contract with solidity on EthereumWrite smart contract with solidity on Ethereum
Write smart contract with solidity on EthereumMurughan Palaniachari
 
Blockchain, working [blockchain vs bitcoin] pros and cons
Blockchain, working [blockchain vs bitcoin] pros and consBlockchain, working [blockchain vs bitcoin] pros and cons
Blockchain, working [blockchain vs bitcoin] pros and consJerin Sebastian
 

Mais procurados (20)

Blockchain Interview Questions And Answers | Blockchain Technology Interview ...
Blockchain Interview Questions And Answers | Blockchain Technology Interview ...Blockchain Interview Questions And Answers | Blockchain Technology Interview ...
Blockchain Interview Questions And Answers | Blockchain Technology Interview ...
 
Hyperledger
HyperledgerHyperledger
Hyperledger
 
Smart contracts
Smart contractsSmart contracts
Smart contracts
 
Basics of Blockchain Technology
Basics of Blockchain TechnologyBasics of Blockchain Technology
Basics of Blockchain Technology
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
 
Ethereum-Cryptocurrency (All about Ethereum)
Ethereum-Cryptocurrency (All about Ethereum) Ethereum-Cryptocurrency (All about Ethereum)
Ethereum-Cryptocurrency (All about Ethereum)
 
Hyperledger Fabric
Hyperledger FabricHyperledger Fabric
Hyperledger Fabric
 
Hyperledger fabric 20180528
Hyperledger fabric 20180528Hyperledger fabric 20180528
Hyperledger fabric 20180528
 
Understanding Blockchain
Understanding BlockchainUnderstanding Blockchain
Understanding Blockchain
 
Blockchain Intro to Hyperledger Fabric
Blockchain Intro to Hyperledger Fabric Blockchain Intro to Hyperledger Fabric
Blockchain Intro to Hyperledger Fabric
 
Introduction to Blockchain and Smart Contracts
Introduction to Blockchain and Smart ContractsIntroduction to Blockchain and Smart Contracts
Introduction to Blockchain and Smart Contracts
 
Hyperledger Fabric Architecture
Hyperledger Fabric ArchitectureHyperledger Fabric Architecture
Hyperledger Fabric Architecture
 
Blockchain
BlockchainBlockchain
Blockchain
 
PoW vs. PoS - Key Differences
PoW vs. PoS - Key DifferencesPoW vs. PoS - Key Differences
PoW vs. PoS - Key Differences
 
Hyperledger Fabric Technical Deep Dive 20190618
Hyperledger Fabric Technical Deep Dive 20190618Hyperledger Fabric Technical Deep Dive 20190618
Hyperledger Fabric Technical Deep Dive 20190618
 
Blockchain and Cryptocurrency for Dummies
Blockchain and Cryptocurrency for DummiesBlockchain and Cryptocurrency for Dummies
Blockchain and Cryptocurrency for Dummies
 
Blockchain Technology Explained | Blockchain Technology Tutorial | Blockchain...
Blockchain Technology Explained | Blockchain Technology Tutorial | Blockchain...Blockchain Technology Explained | Blockchain Technology Tutorial | Blockchain...
Blockchain Technology Explained | Blockchain Technology Tutorial | Blockchain...
 
Non-fungible tokens (nfts)
Non-fungible tokens (nfts)Non-fungible tokens (nfts)
Non-fungible tokens (nfts)
 
Write smart contract with solidity on Ethereum
Write smart contract with solidity on EthereumWrite smart contract with solidity on Ethereum
Write smart contract with solidity on Ethereum
 
Blockchain, working [blockchain vs bitcoin] pros and cons
Blockchain, working [blockchain vs bitcoin] pros and consBlockchain, working [blockchain vs bitcoin] pros and cons
Blockchain, working [blockchain vs bitcoin] pros and cons
 

Semelhante a Hyperledger Fabric and Tools

Hyperledger Composer
Hyperledger ComposerHyperledger Composer
Hyperledger ComposerRihusoft
 
Hyperledger Fabric & Composer
Hyperledger Fabric & Composer Hyperledger Fabric & Composer
Hyperledger Fabric & Composer Dr. Ketan Parmar
 
Introduction of Hyperledger Fabric & Composer
Introduction of Hyperledger Fabric & Composer Introduction of Hyperledger Fabric & Composer
Introduction of Hyperledger Fabric & Composer Dr. Ketan Parmar
 
Introduction to Blockchain and Hyperledger
Introduction to Blockchain and HyperledgerIntroduction to Blockchain and Hyperledger
Introduction to Blockchain and HyperledgerDev_Events
 
Defrag X Keynote: Deploying and managing Global Blockchain Network
Defrag X Keynote: Deploying and managing Global Blockchain NetworkDefrag X Keynote: Deploying and managing Global Blockchain Network
Defrag X Keynote: Deploying and managing Global Blockchain NetworkDuncan Johnston-Watt
 
Introduction to Hyperledger Composer
Introduction to Hyperledger ComposerIntroduction to Hyperledger Composer
Introduction to Hyperledger ComposerSimon Stone
 
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger WorkshopIBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger WorkshopIBM France Lab
 
hyperledger-chaincode & hyperl fabric.pptx
hyperledger-chaincode & hyperl fabric.pptxhyperledger-chaincode & hyperl fabric.pptx
hyperledger-chaincode & hyperl fabric.pptxdeepaksingh160910
 
[Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발
[Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발 [Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발
[Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발 Yunho Maeng
 
IRJET- Proof of Document using Multichain and Ethereum
IRJET- Proof of Document using Multichain and EthereumIRJET- Proof of Document using Multichain and Ethereum
IRJET- Proof of Document using Multichain and EthereumIRJET Journal
 
Distributed:Health Code Camp Hyperledger
Distributed:Health Code Camp HyperledgerDistributed:Health Code Camp Hyperledger
Distributed:Health Code Camp HyperledgerTracy Kuhrt
 
blockchain unit 3
blockchain unit 3blockchain unit 3
blockchain unit 3Rohit Verma
 
Hyperledger Composer architecture
Hyperledger Composer architectureHyperledger Composer architecture
Hyperledger Composer architectureSimon Stone
 
Wwc developing hyperledger applications v4
Wwc  developing hyperledger applications v4Wwc  developing hyperledger applications v4
Wwc developing hyperledger applications v4LennartF
 
Blockchain Development Kit
Blockchain Development KitBlockchain Development Kit
Blockchain Development KitHuda Seyam
 

Semelhante a Hyperledger Fabric and Tools (20)

Hyperledger
HyperledgerHyperledger
Hyperledger
 
Hyperledger Composer
Hyperledger ComposerHyperledger Composer
Hyperledger Composer
 
Hyperledger Fabric & Composer
Hyperledger Fabric & Composer Hyperledger Fabric & Composer
Hyperledger Fabric & Composer
 
Introduction of Hyperledger Fabric & Composer
Introduction of Hyperledger Fabric & Composer Introduction of Hyperledger Fabric & Composer
Introduction of Hyperledger Fabric & Composer
 
Introduction to Blockchain and Hyperledger
Introduction to Blockchain and HyperledgerIntroduction to Blockchain and Hyperledger
Introduction to Blockchain and Hyperledger
 
Defrag X Keynote: Deploying and managing Global Blockchain Network
Defrag X Keynote: Deploying and managing Global Blockchain NetworkDefrag X Keynote: Deploying and managing Global Blockchain Network
Defrag X Keynote: Deploying and managing Global Blockchain Network
 
Defrag x blockchain keynote
Defrag x blockchain keynoteDefrag x blockchain keynote
Defrag x blockchain keynote
 
Block chain
Block chainBlock chain
Block chain
 
Introduction to Hyperledger Composer
Introduction to Hyperledger ComposerIntroduction to Hyperledger Composer
Introduction to Hyperledger Composer
 
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger WorkshopIBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
 
hyperledger-chaincode & hyperl fabric.pptx
hyperledger-chaincode & hyperl fabric.pptxhyperledger-chaincode & hyperl fabric.pptx
hyperledger-chaincode & hyperl fabric.pptx
 
Conoscerehyperledger
ConoscerehyperledgerConoscerehyperledger
Conoscerehyperledger
 
[Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발
[Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발 [Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발
[Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발
 
IRJET- Proof of Document using Multichain and Ethereum
IRJET- Proof of Document using Multichain and EthereumIRJET- Proof of Document using Multichain and Ethereum
IRJET- Proof of Document using Multichain and Ethereum
 
Distributed:Health Code Camp Hyperledger
Distributed:Health Code Camp HyperledgerDistributed:Health Code Camp Hyperledger
Distributed:Health Code Camp Hyperledger
 
blockchain unit 3
blockchain unit 3blockchain unit 3
blockchain unit 3
 
Hyperledger Composer architecture
Hyperledger Composer architectureHyperledger Composer architecture
Hyperledger Composer architecture
 
Wwc developing hyperledger applications v4
Wwc  developing hyperledger applications v4Wwc  developing hyperledger applications v4
Wwc developing hyperledger applications v4
 
Block chain technology
Block chain technologyBlock chain technology
Block chain technology
 
Blockchain Development Kit
Blockchain Development KitBlockchain Development Kit
Blockchain Development Kit
 

Último

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 

Último (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 

Hyperledger Fabric and Tools

  • 2. BlockChain Technology  Blockchain is a Decentralized, Distributed and immutable ledger (group of transactions).  A block is the ‘current’ part of a blockchain, which records some or all of the recent transactions. Once completed, a block goes into the blockchain as a permanent database. Each time a block gets completed, a new one is generated. There is a countless number of such blocks in the blockchain, connected to each other (like links in a chain) in proper linear, chronological order. Every block contains a hash of the previous block  Each node (a computer connected to the network) gets a copy of the blockchain, which is updated automatically.
  • 3. Why Blockchain Technology?  Made Transactions transparent and secure because of using cryptography patterns  No need of third Party to record transactions due to decentralized nature of the technology.  Transferred power to people  High security to the data  Transactions cannot be altered or deleted because it is an immutable ledger.
  • 4. Smart Contract :- computer protocol intended to facilate, verify or enforce the negotiation or performance of contract Mining :- Adding transactions to the ledger Peers :- Each node (a computer connected to the network) is called peer Endorser :-Peer will simulate the transaction and ensure that the outcome is both deterministic and stable Committer :-The peer will validate the integrity of a transaction and then append to the ledger. Endorsement policy:- Instruct a peer on how to decide whether a transaction is properly endorsed Transactions:- Transactions are submitted by a participant to affect the assets held in the asset registries on the Hyperledger blockchain Consensus:- An agreement made between peers or organizations Quick Notes
  • 5. What is Hyperledger     Hyperledger is an umbrella project of open source blockchains and related tools started in December 2015 by the Linux Foundation to support the collaborative development of blockchain- based distributed ledgers.  The “umbrella strategy” of Hyperledger incubates and promotes a range of business blockchain technologies, framework, libraries, interfaces, and application. Currently, Hyperledger is the host of the following projects with frameworks.  Hyperledger Fabric  Hyperledger Sawtooth  Hyperledger Iroha  Hyperledger Indy  Hyperledger Burrow
  • 6.
  • 7.                HyperLedger Fabric  Hyperledger Fabric is a blockchain framework implementation and one of the Hyperledger projects hosted by The Linux Foundation.  Fabric is distinguished as a platform for permissioned networks, where all participants have known identities.  It is built on a modular architecture that separates transaction processing into three phases: distributed logic processing and agreement ("chaincode"), transaction ordering, and transaction validation and commitment.  Latest release of Hyperledger fabric is v1.0
  • 8. Prerequisites:  Docker - version 17.03.0-ce or greater  Docker Compose - version 1.8 or greater  Node.js - version 6.9.x or greater  NPM – version 3.10.10.  Go – 1.7x / JDK.  Hyperledger Fabric platform-specific binaries. • Cryptogen. • configtxgen, • configtxlator, • peer  Download the Docker images required for Fabric.
  • 9.  Transaction lifecycle of Hyperledger Fabric
  • 10. Chaincode  Chaincode, also called the smart contract, is essentially the business logic that governs how the different entities or parties in a blockchain network interact or transact with each other. Invocations of the chaincode result in sets and gets of the ledger or world state  It is a piece of code that is deployed into a network of Hyperledger fabric peer nodes that enables interaction with that network's shared ledger.  Chaincode runs in a secured Docker container isolated from the endorsing peer process. Chaincode initializes and manages ledger state through transactions submitted by applications.
  • 12. Chaincode Development  To start a development environment, we need to perform the following seven tasks: 1. Build peer, orderer, and configtxgen executable binary . 2. Create genesis block for the orderer. 3. Start the orderer. 4. Start the peer. 5. Create channel configuration transaction and create a channel on orderer. 6. Join the peer to created channel. 7. Compile the chaincode and start executing. 8. Install and Instantiate the chaincode on the peer.
  • 13. Working with chaincode :  Download Docker images : fabric-tools , fabric-orderer, peer , fabric-ccenv  Start the Network with docker-compose by creating a yaml file in terminal 1 which starts the orderer, peer .  On terminal 2 Build and start the chaincode from chaincode interpreter command line using go build .  In other terminal 3 use the chaincode like install , instantiate , invoke and query from the cli (command line interface)  When we invoke chaincode in terminal 3 Transactions will be seen on the terminal 2  We can install more chaincodes in terminal 3 cli and verify in terminal 3.
  • 14. Hyperledger Tools        Set of collaboration tools for building blockchain networks that make it simple and quick for development.  Hyperledger Composer  Composer is a tool for building blockchain business networks, It used to create smart contracts and blockchain applications to solve business problems.  Hyperledger Explorer  Explorer is a tool which provides a dashboard viewing information about transactions ,blocks and smart contracts available on the network.  Hyperledger Cello  Cello can build up a Blockchain as a Service (BaaS) platform quickly from the scratch. It reduce the effort required for creating, managing and terminating blockchains.
  • 15. HyperLedger Composer  Composer is a framework to accelerate the development of applications built on the top of Blockchain platform such as Hyperledger Fabric  Start from the business level :model network assets, participants & transactions  Build Applications that use API's to invoke transactions, that create, update &delete  Assets are transfer between participants  Assets, participants ,transactions are recorded on Blockchain registries  Can easily integrate blockchain with existing business processes & system records  Modelling language: The Hyperledger Composer modelling language is used in the business network definition to describe the assets, participants, and transactions in the business network
  • 16. Prerequisites:  Operating Systems: Ubuntu Linux 14.04 / 16.04 LTS (both 64-bit), or Mac OS 10.12  Docker Engine: Version 17.03 or higher  Docker-Compose: Version 1.8 or higher  Node: 8.9 or higher (note version 9 is not supported)  npm: v5.x  git: 2.9.x or higher  composer-cli  Yeoman generator  composer-rest-server
  • 18. Composer PlayGround  The Hyperledger Composer Playground provides a user interface for the configuration, deployment and testing of a business network  Without development environment setup we can still develop business network by playground  In playground we can create or import network.bna file to generate or develop business network  Playground mainly deals with assets, participants and transactions  If we do anything in the business network that will be save in transaction history which cannot be change  Define tab:- Define tab we can define and work with model for your business network  Test tab:-can create assets and participants that were defined in the Define tab, and test the functionality of your business network..
  • 19. Developing Business network in playground  Click Deploy a new business network  and give  Click empty-business-network then Deploy the Business network  To connect to our business network click Connect now under our business network card.  Then add model file,script file and Access control file  Click Update to deploy the changes to our business network  Click the Test tab to test our Business network  The first thing we should add to our business network is to add  participants and assests.  Click the Submit Transaction button to submit our transactions  We can see all transactions in our business network by Click  All Transactions
  • 21. Deploying a business network to Hyperledger Fabric for a single organization Step-1 : Setup the development environment. - https://hyperledger.github.io/composer/unstable/installing/development-tools.html Step-2 : Build and start a Hyperledger Fabric network. - http://hyperledger-fabric.readthedocs.io/en/release/build_network.html Step-3 : Setup configuration tools cryptogen and configtxgen. Step-4 : Create a connection profile use to connect with the Fabric network. Step-5 : Locate the certificate and private key for the administrator.
  • 22. Step-6 : Create a business network card that contains all of the information required to connect to the business network. i.e, It includes Connection profile, Private key and Certificate. Step-7 : Import the business network card for the Hyperledger Fabric administrator. Step-8 : Install Composer runtime onto all of the Hyperledger Fabric peer nodes, this is nothing but a chaincode install operation. Here we specify the name of the blockchain business network. Step-9 : Start the blockchain business network, this is chaincode instantiate operation. Step-10 : Import the business network card for the business network administrator. Step-11 : Check that the business network has been deployed successfully. Step-12: Generate a REST API based on the business network.
  • 24. Deploying a Business network to Hyperledger Fabric for multiple organizations  Multiple organization administrators configure their insatnces of Hyperledger composer to interact with the same channel in Hyperledger fabric.  We can able to setup multiple organizations on single server or on multiple servers.  Here Organizations are nothing but participants involved in the bussiness network.  Each organization has its own peers to validate the transactions and orderer to confirm transactions.  All the peers related to the organizations which are in the same channel are involved in validating transactions.
  • 26. Hyperledger Explorer  Docker image with an web-UI explorer for a running hyperledger chain  User friendly web application provides a dashboard for hyperledger to view/query about blocks , transactions ,statistics and smartcontracts available on network.  Users will be able to query for specific blocks or transactions and view the complete details.  Future challenge is to integrate this explorer with other tools composer , cello for displaying the information .
  • 27. Installation Setup  Requirements:  Hyperledger Explorer works with Hyperledger Fabric 1.0. Install the following software dependencies to manage fabric network.  Install and invoke the transactions through CLI(command line interpreter) which will display transactions in the dashboard. o Nodejs 6.9.x or greater o Mysql 5.7 or greater o Docker 17.06.2-ce or greater o Docker-compose 1.14.0 or higher  Setup mysql database to save transactions , blocks and chaincodes etc which are displayed in the dashboard.  Fabric Network Setup where we create a channel with peers and orderers in a single network  Run the Blockchian Explorer which displayed the dashboard in the localhost webpage.
  • 28.
  • 30. Hyperledger Cello Overview  Hyperledger Cello can build up a Blockchain as a Service (BaaS) platform quickly from the scratch.  Provides UI for add/delete hosts, create chain, view active chains, in used chains.  System status will give status of host type, host status , chain type, chain status.  Cello should be deployed on multiple servers, at least 1 Master Node and 1 Worker Node.  It gives instance response even with hundreds of chains or nodes.
  • 31. Prerequisites  Hardware: 8c16g100g  Docker engine: 1.10.0~1.13.0 (Docker 17.0+ support is experimental)  docker-compose: 1.8.0~1.12.0 Cello Environment Setup  Master node setup.  Worker node setup.  Host setup(docker host or swarm).
  • 32. Master Node  Master node will run cello services(docker images) I.e.,  Nginx(is used as a reverse proxy to improve web performance).  Mongo( is used as the backend database).  Cello-dashboard( Provides the admin dashboard).  Cello-watchdog(Monitors the status of the system e.g., chains' health).  Cello-restserver(Core engine to do the provision, orchestration and management).  It will manage the blockchain networks running inside the Worker nodes.  It will add/manage/delete worker nodes.  It can add chains for worker nodes.
  • 33. Worker Node  The servers to have blockchains running inside.  worker nodes will be managed by the master node.  Docker daemon should be in running.  Blockchain network can be created with Hyperledger Fabric network, a SawthoothLake or Iroha chain.  Now we are using Hyperledger Fabric.
  • 35. Docker  Docker is a tool designed to make it easier to create, deploy, and run applications by using containers.  Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package.  So that developers need not worry about system setup, they can focus on writing code.  Docker is a bit like a virtual machine. But unlike a virtual machine, rather than creating a whole virtual operating system, Docker allows applications to use the same Linux kernel as the system that they're running on and only requires applications be shipped with things not already running on the host computer.
  • 36. Docker Swarm  Docker swarm will connect multiple nodes.  A Manager node can add multiple worker nodes.  When a manager node runs a container, the replicas of that container will be added in worker node.
  • 37. References  https://hyperledger.github.io/composer/playground/playground-index.html  https://hyperledger.github.io/composer/tutorials/deploy-to-fabric-multi-org.html  http://cello.readthedocs.io/en/latest/  https://github.com/hyperledger/cello/blob/master/docs/terminology.md  http://hyperledger.org/  http://hyperledger.org/projects/explorer  https://github.com/hyperledger/blockchain-explorer ● https://www.youtube.com/edit?o=U&video_id=EvICyArbFSs