SlideShare ist ein Scribd-Unternehmen logo
1 von 47
Hyperledger Fabric 1.0
A technical exploration
ThomasMarckx– theledger.
Part of theCronosGroup
ThomasMarckx
thomas.marckx@theledger.be
Blockchain Architect
@ThomasMarckx
http://theledger.be
Let’s start your blockchain adventure
TRAIN • ADVICE • PROTOTYPE • BUILD
@wearetheledger
http://Theledger.be
COMMUNITY
TECHNOLOGY • SCHOOLS • BUSINESS
Think
Is it a Use-case?
Stakeholders?
Requirements
Workshop Collaboration
Digital token
Smart contract
sandbox
Integration
Front-end
Iterations
Live
Blockchain
environment
Next steps
build Deliver
Cape up!
‘Recape’ Blockchain
Hyperledger Project
Fabric 0.6
Q&A
Fabric 1.0
How to start?
‘Recape’ Blockchain
PEER
PEER
PEER
PEER PEER
PEER
PEER PEER
PEER PEER
Blockchain 2.0Blockchain 1.0
OPEN Public Blockchains Permissioned enterprise Blockchains
Two types of blockchains
Technologies everywhere
Hyperledger - Fabric
Ethereum
Multichain
Bigchaindb
Hyperledger - Corda
Hyperledger Project
Linux foundation presents… Https://hyperledger.org
The Hyperledger Project is a collaborative effort created to advance
blockchain technology by identifying and addressing important features for
a cross-industry open standard for distributed ledgers that can transform
the way business transactions are conducted globally.
Modular frameworks
Permissioned Enterprise Blockchain
Open source
100+ members & partners
Shared Ledger
Blockchain 2.0
Permission
Smart contract
consensus
Hyperledger Partners
Hyperledger Blockchain Frameworks
Fabric
Iroha
Sawtooth lake
Corda
IBM codebase
Pluggable consensus
Mostadvanced
Japanese
Mobile libraries & components
Intel codebase
Modularity
PoET & quorum
R3consortium
Multiple ledgers
Private P2P transactions
Hyperledger Fabric 0.6
Fabric components
PEER
Membership
Services
Validating peers
Ledger of tx
World state
Membership services
Credentials & certificates
Users & peers
Pluggable consensus
None
Practical Byzantine
Fault tolerance
Smart contract
Go & java
Key-value storage
Permissioned through Membership services
Membership
Services
Everyone!
user, peer, validator, auditor
Public key infrastructure
Certificate authority (CA)
No external Registration Authority (RA) yet
Certificates
Single point of Failure!
ECA, TCA, ACA & TLSCA
Membership services – Certificates Structure
Membership
Services
Architecture 0.6
Ecerts
API
Backend api
(nodejs)
PEER
PEER
PEER
PEER
…
SMART Contract
Membership
Services
User
SPoF
Breakdown
Membership
Services
API
Backend api
User
PEER
keys
deploy
Invoke
Query
Register
enroll
Cert’s
Blockchain / ledger
&
World state
Smart contracts and … Go!
AKA Chaincode
In Golang & Java
All the same structure
Init, Invoke, query
Key-value Data storage - ROcksDB
Access Rights
Attributes as caller data
A-CERT
Invoke
Vs.
Query
Privacy through encryption
Rick
Jessica
Membership
Services PEER
PEER
PEER
PEER Rick
Rick
&
jessica
Lessons learned
Security & scalability
Peer seperation
Endorser – deterministic transactions
1+ membership services providers
Upgrade fabric & chaincode
Committer – Consensus / ledger consistency
Confidential transactions
Orderer – transactions in batch
Hyperledger Fabric 1.0
Breakdown … again
Membership
Services
API
Backend api
User
Endorser
keys
deploy
Invoke
Query
Register
enroll
Peer
Ordering
Service
Types of peers
Endorser
Peer
Peer
Commits TX – maintains ledger & world state
Endorsing Peer
Endorses & executes chaincode
Ordering Peer
Includes tx in blocks
Communicates with other peers
Bring your own Certificate authority
Membership
Services
Client
App
User
Certificate
Authorities
WALLET
Vision
Business Endorsement Policy
Not all peers validate transaction
Only (some) Endorsers
Consent network
broadcast network
Orders transactions
Doesn’t execute the smart contracts
No SPoF’s
Bring your own Membership services
Privacy
Support Confidentiality via Sub-ledgering
Update possibilities
Dynamically update fabric
& chaincode
Pluggable
Data-storage & consensus mechanisms
30
MarchDecember2016/17
Hack	Fest	docker images
• 60	participates	tested
• Basic	v1	architecture	in	place
• Add	/	Remove	Peers
• Channels
• Node	SDK
• Go	Chaincode
• Ordering	Solo
• Fabric	CA
V1	Alpha	*
• Docker	images
• Tooling	to	bootstrap	network
• Fabric	CA	or	bring	your	own
• Java	and	Node	SDKs
• Ordering	Services	- Solo	and	Kafka
• Endorsement	policy	
• Level	DB	and	Couch	DB
• Block	dissemination	across	peers	
via	Gossip
V1	GA	*
• Hardening,	usability,	serviceability,	
load,	operability	and	stress	test
• Java	Chaincode
• Tcerts in	SDK	/	Chaincode ACL
• Chaincode packaging	and	lifecycle
• Pluggable	crypto	
• HSM	support	
• Consumability of	configuration
• Next	gen	bootstrap	tool	(config
update)
• Config transaction	lifecycle
• Eventing security
• Cross	Channel	Query
• Peer	management	APIs
• Documentation
June
Connect-a-thon
• 11	companies	in	Australia,	
Hungary,	UK,	US	East	Coast,	US	
West	Coast,	Canada	dynamically	
added	peers	and	traded	assets
Future
V	Next	*
• SBFT	
• Archive	and	pruning
• System	Chaincode extensions
• Side	DB	for	private	data
• Application	crypto	library	
• Dynamic	service	discovery
• REST	wrapper
• Python	SDK
• Identity	Mixer	(Stretch)	
Connect-a-cloud
• Dynamically	connecting	OEM		
hosted	cloud	environments	to	
trade	assets
Proposed	Alpha	detailed	content:
https://wiki.hyperledger.org/projects/proposedv1alphacontent
*	Dates	for	Alpha,	Beta,	and	GA	are	determined	by	Hyperledger
community	and	are	currently	proposals.			
Time-Line
Fabric 1.0 – Architecture flow
Endorser
Peer
Orderer
Chaincode
E2
OO
O O
E1
P3
ClientAppsubmits a transaction proposal
for Smart Contract A to the Endorsing peer
E0
Note:
• Endorsementpolicy: “E0, E1 andE2 must
sign”
• P3, is notpartofthe policy
1 (Propose)
A
D
A
B
A
B
E0
A
B
Client	
App
SDK
Ordering-Service
Architecture Flow - Propose
SDK
Endorser
Peer
Orderer
Chaincode
E2
OO
O O
E1
P3
A
D
A
B
A
B
E0
A
B
Client	
App
SDK
Ordering-Service
Endorsing peer E0 executes the tx and
(optionally) “anchors it” with respect to
the ledger state version numbers
An “anchor” contains all data read and
written by the contract that is to be
confirmed by other endorsers
2.1 (Execute)
2.2 (Transaction-
Valid, anchor)
Architecture Flow - Execute
Client	
App
The client requests further endorsement
from E1 and E2 as per the endorsement
policy
The client may decide to suggest an
anchor obtained from E0. to E1 and E2
3 (Submit, anchor)
Endorser
Peer
Orderer
Chaincode
E2
OO
O O
E1
P3
A
D
A
B
A
B
E0
A
B
SDK
Ordering-Service
3 (Submit, anchor)
Architecture Flow - Submit
Client	
App
4 (Transaction-Valid)
4 (Transaction-
Valid)
The Endorsing peers E1 and E2 sign the
result and send the endorsement to the
client
Endorser
Peer
Orderer
Chaincode
E2
OO
O O
E1
P3
A
D
A
B
A
B
E0
A
B
SDK
Ordering-Service
Architecture Flow - Endorse
Client	
App
The client formats the transaction and
sends it to the ordering-service nodes
for inclusion in the ledger
5 (Order)
Endorser
Peer
Orderer
Chaincode
E2
OO
O O
E1
P3
A
D
A
B
A
B
E0
A
B
SDK
Ordering-Service
Architecture Flow - Order
The ordering-service delivers the next
block in the ledger with the endorsed
transaction.
6 (Deliver)
6 (Deliver)
6 (Deliver)
6 (Deliver)
Endorser
Peer
Orderer
Chaincode
E2
OO
O O
E1
P3
A
D
A
B
A
B
E0
A
B
Client	
App
SDK
Ordering-Service
Architecture Flow - Deliver
The peers validate the block received
from the ordering-service and update
their ledger and worldstate
7 (Validate)
7 (Validate)
7 (Validate) 7
(Validate)
Endorser
Peer
Orderer
Chaincode
E2
OO
O O
E1
P3
A
D
A
B
A
B
E0
A
B
Client	
App
SDK
Ordering-Service
Architecture Flow - Validate
Endorsement policy
The conditions on how a contract can be endorsed
Peers maintain a set of policies
POLICY
POLICY
POLICY
Multi-Channels
Sending & receiving messages via channels
One ordering service
Multiple ledgers
Ordering-Service
OO
O O
E1
E0
Client	
App
• Peers E0 and E3 connect to the red channel for
chaincodes Y and Z
• Peers E1 and E2 connect to the blue channel for
chaincodes A and B
Blockchain Network
E0
Z
Y
E3
E2
E1
A
B
A
B Y
Z
Client	
App
SDK
SDK
Ordering-Service
OO
O O
Endorser
Orderer
Chaincode
Multi-Ledgering
Fabric 1.0 – Node JS SDK
• V1 still under development
• All code on https://github.com/hyperledger/
• This sample: fabric-sdk-node/blob/master/test/unit/end-to-end.js
• Complete program example to creating a blockchain fabric, deploy smart
contract, submit transaction, query data in 300+ lines of code, using
node.js SDK
• Topology is not the emphasis of sample, so it’s relatively simple. Single
chain, single channel on 2 peers with orderer.
4
Sample program
Infrastructure
Run in the cloud
Ibm - Bluemix
On premise
Baas
Starter Developer network
High security
Separate VM’s
Docker (compose)
Kubernetes
Blockchain ops by THELEDGER.
Run anywhere…
Docker containers
Automatic deployment
Scalable future
Kubernetes, docker swarm
Continuous integration of smart contracts
Mobile, Web, …
API’s, Business logic, integrations,
Transformations,…
RDBM, NOSQL, Ethereum, Hyperledger,
Bigchaindb,…
Docker, Virtual machines,
Cloud Foundry, AZURE, IBM, Amazon, GOOGLE,…Monitoring
Full STACK
Challenge the future …
http://blockchainbelgium.be
http://theledger.be @wearetheledger
Veldkant 33B
2550 - Kontich
info@theledger.be

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Hyperledger Fabric Update - June 2018
Hyperledger Fabric Update - June 2018Hyperledger Fabric Update - June 2018
Hyperledger Fabric Update - June 2018
 
Anatomy of a hyperledger application
Anatomy of a hyperledger applicationAnatomy of a hyperledger application
Anatomy of a hyperledger application
 
Hyperledger Fabric
Hyperledger FabricHyperledger Fabric
Hyperledger Fabric
 
Hyperledger
HyperledgerHyperledger
Hyperledger
 
Blockchain explored
Blockchain explored Blockchain explored
Blockchain explored
 
Introduction of Hyperledger Fabric & Composer
Introduction of Hyperledger Fabric & Composer Introduction of Hyperledger Fabric & Composer
Introduction of Hyperledger Fabric & Composer
 
Blockchain explained FIATA Congress 20180910
Blockchain explained FIATA Congress 20180910Blockchain explained FIATA Congress 20180910
Blockchain explained FIATA Congress 20180910
 
Wwc developing hyperledger applications v4
Wwc  developing hyperledger applications v4Wwc  developing hyperledger applications v4
Wwc developing hyperledger applications v4
 
Blockchain - HyperLedger Fabric
Blockchain - HyperLedger FabricBlockchain - HyperLedger Fabric
Blockchain - HyperLedger Fabric
 
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
 
Hyperledger Composer
Hyperledger ComposerHyperledger Composer
Hyperledger Composer
 
Hyperledger fabric 3
Hyperledger fabric 3Hyperledger fabric 3
Hyperledger fabric 3
 
Webinar: Enterprise Blockchain Radically Simplified with Truffle and Kaleido
Webinar: Enterprise Blockchain Radically Simplified with Truffle and KaleidoWebinar: Enterprise Blockchain Radically Simplified with Truffle and Kaleido
Webinar: Enterprise Blockchain Radically Simplified with Truffle and Kaleido
 
Hyperledger Fabric in a Nutshell
Hyperledger Fabric in a NutshellHyperledger Fabric in a Nutshell
Hyperledger Fabric in a Nutshell
 
Hyperledger fabric 20180528
Hyperledger fabric 20180528Hyperledger fabric 20180528
Hyperledger fabric 20180528
 
Hyperledger Fabric Application Development 20190618
Hyperledger Fabric Application Development 20190618Hyperledger Fabric Application Development 20190618
Hyperledger Fabric Application Development 20190618
 
Ibm blockchain - Hyperledger 15.02.18
Ibm blockchain - Hyperledger 15.02.18Ibm blockchain - Hyperledger 15.02.18
Ibm blockchain - Hyperledger 15.02.18
 
Architecture of the Hyperledger Blockchain Fabric
Architecture of the Hyperledger Blockchain FabricArchitecture of the Hyperledger Blockchain Fabric
Architecture of the Hyperledger Blockchain Fabric
 
Deploying and Managing a Global Blockchain Network
Deploying and Managing a Global Blockchain NetworkDeploying and Managing a Global Blockchain Network
Deploying and Managing a Global Blockchain Network
 
Blockchain Hyperledger Fabric
Blockchain Hyperledger FabricBlockchain Hyperledger Fabric
Blockchain Hyperledger Fabric
 

Ähnlich wie Technical Introduction to Hyperledger Fabric v1.0

Ähnlich wie Technical Introduction to Hyperledger Fabric v1.0 (20)

Introduction to Blockchain and Hyperledger
Introduction to Blockchain and HyperledgerIntroduction to Blockchain and Hyperledger
Introduction to Blockchain and Hyperledger
 
Blockchain for Python Developers - Pyjamas Conf 2020
Blockchain for Python Developers - Pyjamas Conf 2020Blockchain for Python Developers - Pyjamas Conf 2020
Blockchain for Python Developers - Pyjamas Conf 2020
 
Dejan Podgorsek - Is Hyperledger Fabric secure enough for your Business?
Dejan Podgorsek - Is Hyperledger Fabric secure enough for your Business?Dejan Podgorsek - Is Hyperledger Fabric secure enough for your Business?
Dejan Podgorsek - Is Hyperledger Fabric secure enough for your Business?
 
Hyperledger Fabric - Blockchain for the Enterprise - FOSDEM 20190203
Hyperledger Fabric - Blockchain for the Enterprise - FOSDEM 20190203Hyperledger Fabric - Blockchain for the Enterprise - FOSDEM 20190203
Hyperledger Fabric - Blockchain for the Enterprise - FOSDEM 20190203
 
Hyperledger Fabric Technical Deep Dive 20190618
Hyperledger Fabric Technical Deep Dive 20190618Hyperledger Fabric Technical Deep Dive 20190618
Hyperledger Fabric Technical Deep Dive 20190618
 
Doag 2018 eine_reise_durch_die_blockchain_applikationsentwicklung_final
Doag 2018 eine_reise_durch_die_blockchain_applikationsentwicklung_finalDoag 2018 eine_reise_durch_die_blockchain_applikationsentwicklung_final
Doag 2018 eine_reise_durch_die_blockchain_applikationsentwicklung_final
 
Oracle Blockchain Platform_Wonjo Yoo
Oracle Blockchain Platform_Wonjo YooOracle Blockchain Platform_Wonjo Yoo
Oracle Blockchain Platform_Wonjo Yoo
 
Technical considerations for Blockchain networks with AWS
Technical considerations for Blockchain networks with AWSTechnical considerations for Blockchain networks with AWS
Technical considerations for Blockchain networks with AWS
 
Blockchin architecture & use cases -part-2
Blockchin architecture & use cases -part-2Blockchin architecture & use cases -part-2
Blockchin architecture & use cases -part-2
 
[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 맹개발
 
Hyperledger Fabric update Meetup 20181101
Hyperledger Fabric update Meetup 20181101Hyperledger Fabric update Meetup 20181101
Hyperledger Fabric update Meetup 20181101
 
Blockchain Explored: A technical deep-dive
Blockchain Explored: A technical deep-diveBlockchain Explored: A technical deep-dive
Blockchain Explored: A technical deep-dive
 
IBM Blockchain Platform - Architectural Good Practices v1.0
IBM Blockchain Platform - Architectural Good Practices v1.0IBM Blockchain Platform - Architectural Good Practices v1.0
IBM Blockchain Platform - Architectural Good Practices v1.0
 
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
 
How to Build a Decentralized Blockchain App with the Oracle Blockchain Platform
How to Build a Decentralized BlockchainApp with the Oracle Blockchain PlatformHow to Build a Decentralized BlockchainApp with the Oracle Blockchain Platform
How to Build a Decentralized Blockchain App with the Oracle Blockchain Platform
 
Blockchain, Hyperledger and the Oracle Blockchain Platform
Blockchain, Hyperledger and the Oracle Blockchain PlatformBlockchain, Hyperledger and the Oracle Blockchain Platform
Blockchain, Hyperledger and the Oracle Blockchain Platform
 
Block Chain.pptx
Block Chain.pptxBlock Chain.pptx
Block Chain.pptx
 
IBM presents: Hyperledger Fabric Hands On Workshop - part 1
IBM presents: Hyperledger Fabric Hands On Workshop - part 1IBM presents: Hyperledger Fabric Hands On Workshop - part 1
IBM presents: Hyperledger Fabric Hands On Workshop - part 1
 
Blockchain in enterprise - Challenges, Considerations and Designs
Blockchain in enterprise - Challenges, Considerations and DesignsBlockchain in enterprise - Challenges, Considerations and Designs
Blockchain in enterprise - Challenges, Considerations and Designs
 
API Security in a Microservice Architecture
API Security in a Microservice ArchitectureAPI Security in a Microservice Architecture
API Security in a Microservice Architecture
 

Mehr von Altoros

Mehr von Altoros (20)

Maturing with Kubernetes
Maturing with KubernetesMaturing with Kubernetes
Maturing with Kubernetes
 
Kubernetes Platform Readiness and Maturity Assessment
Kubernetes Platform Readiness and Maturity AssessmentKubernetes Platform Readiness and Maturity Assessment
Kubernetes Platform Readiness and Maturity Assessment
 
Journey Through Four Stages of Kubernetes Deployment Maturity
Journey Through Four Stages of Kubernetes Deployment MaturityJourney Through Four Stages of Kubernetes Deployment Maturity
Journey Through Four Stages of Kubernetes Deployment Maturity
 
SGX: Improving Privacy, Security, and Trust Across Blockchain Networks
SGX: Improving Privacy, Security, and Trust Across Blockchain NetworksSGX: Improving Privacy, Security, and Trust Across Blockchain Networks
SGX: Improving Privacy, Security, and Trust Across Blockchain Networks
 
Using the Cloud Foundry and Kubernetes Stack as a Part of a Blockchain CI/CD ...
Using the Cloud Foundry and Kubernetes Stack as a Part of a Blockchain CI/CD ...Using the Cloud Foundry and Kubernetes Stack as a Part of a Blockchain CI/CD ...
Using the Cloud Foundry and Kubernetes Stack as a Part of a Blockchain CI/CD ...
 
A Zero-Knowledge Proof: Improving Privacy on a Blockchain
A Zero-Knowledge Proof:  Improving Privacy on a BlockchainA Zero-Knowledge Proof:  Improving Privacy on a Blockchain
A Zero-Knowledge Proof: Improving Privacy on a Blockchain
 
Crap. Your Big Data Kitchen Is Broken.
Crap. Your Big Data Kitchen Is Broken.Crap. Your Big Data Kitchen Is Broken.
Crap. Your Big Data Kitchen Is Broken.
 
Containers and Kubernetes
Containers and KubernetesContainers and Kubernetes
Containers and Kubernetes
 
Distributed Ledger Technology for Over-the-Counter Trading
Distributed Ledger Technology for Over-the-Counter TradingDistributed Ledger Technology for Over-the-Counter Trading
Distributed Ledger Technology for Over-the-Counter Trading
 
5-Step Deployment of Hyperledger Fabric on Multiple Nodes
5-Step Deployment of Hyperledger Fabric on Multiple Nodes5-Step Deployment of Hyperledger Fabric on Multiple Nodes
5-Step Deployment of Hyperledger Fabric on Multiple Nodes
 
Deploying Kubernetes on GCP with Kubespray
Deploying Kubernetes on GCP with KubesprayDeploying Kubernetes on GCP with Kubespray
Deploying Kubernetes on GCP with Kubespray
 
UAA for Kubernetes
UAA for KubernetesUAA for Kubernetes
UAA for Kubernetes
 
Troubleshooting .NET Applications on Cloud Foundry
Troubleshooting .NET Applications on Cloud FoundryTroubleshooting .NET Applications on Cloud Foundry
Troubleshooting .NET Applications on Cloud Foundry
 
Continuous Integration and Deployment with Jenkins for PCF
Continuous Integration and Deployment with Jenkins for PCFContinuous Integration and Deployment with Jenkins for PCF
Continuous Integration and Deployment with Jenkins for PCF
 
How to Never Leave Your Deployment Unattended
How to Never Leave Your Deployment UnattendedHow to Never Leave Your Deployment Unattended
How to Never Leave Your Deployment Unattended
 
Cloud Foundry Monitoring How-To: Collecting Metrics and Logs
Cloud Foundry Monitoring How-To: Collecting Metrics and LogsCloud Foundry Monitoring How-To: Collecting Metrics and Logs
Cloud Foundry Monitoring How-To: Collecting Metrics and Logs
 
Smart Baggage Tracking: End-to-End Sensor-Based Solution
Smart Baggage Tracking: End-to-End Sensor-Based SolutionSmart Baggage Tracking: End-to-End Sensor-Based Solution
Smart Baggage Tracking: End-to-End Sensor-Based Solution
 
Navigating the Ecosystem of Pivotal Cloud Foundry Tiles
Navigating the Ecosystem of Pivotal Cloud Foundry TilesNavigating the Ecosystem of Pivotal Cloud Foundry Tiles
Navigating the Ecosystem of Pivotal Cloud Foundry Tiles
 
AI as a Catalyst for IoT
AI as a Catalyst for IoTAI as a Catalyst for IoT
AI as a Catalyst for IoT
 
Over-Engineering: Causes, Symptoms, and Treatment
Over-Engineering: Causes, Symptoms, and TreatmentOver-Engineering: Causes, Symptoms, and Treatment
Over-Engineering: Causes, Symptoms, and Treatment
 

KĂźrzlich hochgeladen

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

KĂźrzlich hochgeladen (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Technical Introduction to Hyperledger Fabric v1.0

  • 1. Hyperledger Fabric 1.0 A technical exploration ThomasMarckx– theledger. Part of theCronosGroup
  • 2.
  • 4. Let’s start your blockchain adventure TRAIN • ADVICE • PROTOTYPE • BUILD @wearetheledger http://Theledger.be COMMUNITY TECHNOLOGY • SCHOOLS • BUSINESS
  • 5. Think Is it a Use-case? Stakeholders? Requirements Workshop Collaboration Digital token Smart contract sandbox Integration Front-end Iterations Live Blockchain environment Next steps build Deliver
  • 6. Cape up! ‘Recape’ Blockchain Hyperledger Project Fabric 0.6 Q&A Fabric 1.0 How to start?
  • 8. PEER PEER PEER PEER PEER PEER PEER PEER PEER PEER Blockchain 2.0Blockchain 1.0
  • 9. OPEN Public Blockchains Permissioned enterprise Blockchains Two types of blockchains
  • 10. Technologies everywhere Hyperledger - Fabric Ethereum Multichain Bigchaindb Hyperledger - Corda
  • 12. Linux foundation presents… Https://hyperledger.org The Hyperledger Project is a collaborative effort created to advance blockchain technology by identifying and addressing important features for a cross-industry open standard for distributed ledgers that can transform the way business transactions are conducted globally. Modular frameworks Permissioned Enterprise Blockchain Open source 100+ members & partners Shared Ledger Blockchain 2.0 Permission Smart contract consensus
  • 14. Hyperledger Blockchain Frameworks Fabric Iroha Sawtooth lake Corda IBM codebase Pluggable consensus Mostadvanced Japanese Mobile libraries & components Intel codebase Modularity PoET & quorum R3consortium Multiple ledgers Private P2P transactions
  • 16. Fabric components PEER Membership Services Validating peers Ledger of tx World state Membership services Credentials & certificates Users & peers Pluggable consensus None Practical Byzantine Fault tolerance Smart contract Go & java Key-value storage
  • 17. Permissioned through Membership services Membership Services Everyone! user, peer, validator, auditor Public key infrastructure Certificate authority (CA) No external Registration Authority (RA) yet Certificates Single point of Failure! ECA, TCA, ACA & TLSCA
  • 18. Membership services – Certificates Structure Membership Services
  • 21. Smart contracts and … Go! AKA Chaincode In Golang & Java All the same structure Init, Invoke, query Key-value Data storage - ROcksDB Access Rights Attributes as caller data A-CERT
  • 23. Privacy through encryption Rick Jessica Membership Services PEER PEER PEER PEER Rick Rick & jessica
  • 24. Lessons learned Security & scalability Peer seperation Endorser – deterministic transactions 1+ membership services providers Upgrade fabric & chaincode Committer – Consensus / ledger consistency Confidential transactions Orderer – transactions in batch
  • 26. Breakdown … again Membership Services API Backend api User Endorser keys deploy Invoke Query Register enroll Peer Ordering Service
  • 27. Types of peers Endorser Peer Peer Commits TX – maintains ledger & world state Endorsing Peer Endorses & executes chaincode Ordering Peer Includes tx in blocks Communicates with other peers
  • 28. Bring your own Certificate authority Membership Services Client App User Certificate Authorities WALLET
  • 29. Vision Business Endorsement Policy Not all peers validate transaction Only (some) Endorsers Consent network broadcast network Orders transactions Doesn’t execute the smart contracts No SPoF’s Bring your own Membership services Privacy Support Confidentiality via Sub-ledgering Update possibilities Dynamically update fabric & chaincode Pluggable Data-storage & consensus mechanisms
  • 30. 30 MarchDecember2016/17 Hack Fest docker images • 60 participates tested • Basic v1 architecture in place • Add / Remove Peers • Channels • Node SDK • Go Chaincode • Ordering Solo • Fabric CA V1 Alpha * • Docker images • Tooling to bootstrap network • Fabric CA or bring your own • Java and Node SDKs • Ordering Services - Solo and Kafka • Endorsement policy • Level DB and Couch DB • Block dissemination across peers via Gossip V1 GA * • Hardening, usability, serviceability, load, operability and stress test • Java Chaincode • Tcerts in SDK / Chaincode ACL • Chaincode packaging and lifecycle • Pluggable crypto • HSM support • Consumability of configuration • Next gen bootstrap tool (config update) • Config transaction lifecycle • Eventing security • Cross Channel Query • Peer management APIs • Documentation June Connect-a-thon • 11 companies in Australia, Hungary, UK, US East Coast, US West Coast, Canada dynamically added peers and traded assets Future V Next * • SBFT • Archive and pruning • System Chaincode extensions • Side DB for private data • Application crypto library • Dynamic service discovery • REST wrapper • Python SDK • Identity Mixer (Stretch) Connect-a-cloud • Dynamically connecting OEM hosted cloud environments to trade assets Proposed Alpha detailed content: https://wiki.hyperledger.org/projects/proposedv1alphacontent * Dates for Alpha, Beta, and GA are determined by Hyperledger community and are currently proposals. Time-Line
  • 31. Fabric 1.0 – Architecture flow
  • 32. Endorser Peer Orderer Chaincode E2 OO O O E1 P3 ClientAppsubmits a transaction proposal for Smart Contract A to the Endorsing peer E0 Note: • Endorsementpolicy: “E0, E1 andE2 must sign” • P3, is notpartofthe policy 1 (Propose) A D A B A B E0 A B Client App SDK Ordering-Service Architecture Flow - Propose
  • 33. SDK Endorser Peer Orderer Chaincode E2 OO O O E1 P3 A D A B A B E0 A B Client App SDK Ordering-Service Endorsing peer E0 executes the tx and (optionally) “anchors it” with respect to the ledger state version numbers An “anchor” contains all data read and written by the contract that is to be confirmed by other endorsers 2.1 (Execute) 2.2 (Transaction- Valid, anchor) Architecture Flow - Execute
  • 34. Client App The client requests further endorsement from E1 and E2 as per the endorsement policy The client may decide to suggest an anchor obtained from E0. to E1 and E2 3 (Submit, anchor) Endorser Peer Orderer Chaincode E2 OO O O E1 P3 A D A B A B E0 A B SDK Ordering-Service 3 (Submit, anchor) Architecture Flow - Submit
  • 35. Client App 4 (Transaction-Valid) 4 (Transaction- Valid) The Endorsing peers E1 and E2 sign the result and send the endorsement to the client Endorser Peer Orderer Chaincode E2 OO O O E1 P3 A D A B A B E0 A B SDK Ordering-Service Architecture Flow - Endorse
  • 36. Client App The client formats the transaction and sends it to the ordering-service nodes for inclusion in the ledger 5 (Order) Endorser Peer Orderer Chaincode E2 OO O O E1 P3 A D A B A B E0 A B SDK Ordering-Service Architecture Flow - Order
  • 37. The ordering-service delivers the next block in the ledger with the endorsed transaction. 6 (Deliver) 6 (Deliver) 6 (Deliver) 6 (Deliver) Endorser Peer Orderer Chaincode E2 OO O O E1 P3 A D A B A B E0 A B Client App SDK Ordering-Service Architecture Flow - Deliver
  • 38. The peers validate the block received from the ordering-service and update their ledger and worldstate 7 (Validate) 7 (Validate) 7 (Validate) 7 (Validate) Endorser Peer Orderer Chaincode E2 OO O O E1 P3 A D A B A B E0 A B Client App SDK Ordering-Service Architecture Flow - Validate
  • 39. Endorsement policy The conditions on how a contract can be endorsed Peers maintain a set of policies POLICY POLICY POLICY
  • 40. Multi-Channels Sending & receiving messages via channels One ordering service Multiple ledgers Ordering-Service OO O O E1 E0
  • 41. Client App • Peers E0 and E3 connect to the red channel for chaincodes Y and Z • Peers E1 and E2 connect to the blue channel for chaincodes A and B Blockchain Network E0 Z Y E3 E2 E1 A B A B Y Z Client App SDK SDK Ordering-Service OO O O Endorser Orderer Chaincode Multi-Ledgering
  • 42. Fabric 1.0 – Node JS SDK
  • 43. • V1 still under development • All code on https://github.com/hyperledger/ • This sample: fabric-sdk-node/blob/master/test/unit/end-to-end.js • Complete program example to creating a blockchain fabric, deploy smart contract, submit transaction, query data in 300+ lines of code, using node.js SDK • Topology is not the emphasis of sample, so it’s relatively simple. Single chain, single channel on 2 peers with orderer. 4 Sample program
  • 45. Run in the cloud Ibm - Bluemix On premise Baas Starter Developer network High security Separate VM’s Docker (compose) Kubernetes
  • 46. Blockchain ops by THELEDGER. Run anywhere… Docker containers Automatic deployment Scalable future Kubernetes, docker swarm Continuous integration of smart contracts Mobile, Web, … API’s, Business logic, integrations, Transformations,… RDBM, NOSQL, Ethereum, Hyperledger, Bigchaindb,… Docker, Virtual machines, Cloud Foundry, AZURE, IBM, Amazon, GOOGLE,…Monitoring Full STACK
  • 47. Challenge the future … http://blockchainbelgium.be http://theledger.be @wearetheledger Veldkant 33B 2550 - Kontich info@theledger.be