meetup 19/12/2016 - blockchain-as-a-service voor antwerpen?
TRANSCRIPT
THE LEDGER. // Hyperledger @Digipolis
A subtle introductionTo Hyperledger
TheLedger.Part of the Cronos Group
Thomas Marckx – theledger.
THE LEDGER. // Hyperledger @Digipolis
Thomas Marckx
Blockchain Developer
@MarckxThomas
THE LEDGER. // Hyperledger @Digipolis
Let’s start your blockchain adventure
TRAIN • ADVICE • PROTOTYPE • BUILD
@wearetheledger
Theledger.be
THE LEDGER. // Hyperledger @Digipolis
Digipolis … go!
Enterprise Blockchain?!
Hyperledger Fabric
Hyperledger Project
Blockchain ops
Q&A
THE LEDGER. // Hyperledger @Digipolis
Distribution
Open collaboration systems
no-points-of-failure
Infinite scalability
Fast innovation
Internet of assets
Blockchain
THE LEDGER. // Hyperledger @Digipolis
No gain … all pain
Subjective theory of value
Value by consensus
Consensus by witness
THE LEDGER. // Hyperledger @Digipolis
a mechanism to draw fact-based conclusions In an auditable way
THE LEDGER. // Hyperledger @Digipolis
Not quiet open-ready
Anonimity / identity
accountability
Energy consumption of POW
Scalability & performance No Audit support
Privacy
cryptocurrency
Slow transaction confirmation
THE LEDGER. // Hyperledger @Digipolis
A case for enterprise
Permission
Performance
modularity
Compliance auditingCost-efficient
Settlement finality
governance
privacy
THE LEDGER. // Hyperledger @Digipolis
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
THE LEDGER. // Hyperledger @Digipolis
Hyperledger Blockchain Frameworks
FabricMoreinformationalteronCodebasefromIBMBlockchain
Sawtooth LakefromIntelcodebasemodularPoET consensusmechanism
IrohaJapaneseforcolorMobilelibraries&componentstoforablockchain network
CordaAnounced bytheR3Consortium
Fabric
Iroha
Sawtooth lake
Corda
IBM codebase
Pluggable consensus
Most advanced
Japanese
Mobile libraries & components
Intel codebase
Modularity
PoET & quorum
R3 consortium
THE LEDGER. // Hyperledger @Digipolis
What, what .. Whaaat?
PEER
MembershipServices
Validating peers
Ledger of tx
World state
Membership services
Credentials & certificates
Users & peers
Pluggable consensus
None
Practical ByzantineFault tolerance
Smart contract
Go & java
Key-value storage
THE LEDGER. // Hyperledger @Digipolis
Got my tools…
Rest api
Chaintool
SDK’s
NODEJS – hfc package
JAVA
Python
THE LEDGER. // Hyperledger @Digipolis
Version 0.6
Ecerts
API
Backend api(nodejs)
PEER
PEER
PEER
PEER
…
SMART Contract
MembershipServices
User
SPoF
THE LEDGER. // Hyperledger @Digipolis
Breakdown
MembershipServices
API
Backend apiUser
PEERkeys
deployInvokeQuery
Register enroll
THE LEDGER. // Hyperledger @Digipolis
Privacy through encryption
Rick
Jessica
MembershipServices PEER
PEER
PEER
PEER Rick
Rick&
jessica
THE LEDGER. // Hyperledger @Digipolis
Practical Byzantine Fault Tolerance Consensus and the Blockchain Network
SMART CONTRACT
Applications
Blockchainoperator
Configure,operates
INVOKE SMART CONTRACT
deployed to &executes onpeer nodes
Consensus Network
PeerExact network structure dependson consensus mechanism. e.g.PBFT has leader, validating andnon-validating peers
Consensus messages flow between appropriate peers to ensure the Blockchain SC transactions are kept in order; world state is kept consistent through local transaction replay
THE LEDGER. // Hyperledger @Digipolis
Practical Byzantine Fault Tolerance How does it work – Submission
Consensus Network
N
V
VL
Non-validating peer
Validating peer
Validating leader
NV
NVL
N
V
N
V
123
456
789
Transactions submitted to network
123 456 789
789 456 123
456 123 789
456 789 123
THE LEDGER. // Hyperledger @Digipolis
Practical Byzantine Fault Tolerance How does it work – Ordening
Consensus Network
N
V
VL
Non-validating peer
Validating peer
Validating leader
NV
NVL
N
V
N
V
123
456
789
Transactions submitted to network
123 456 789
123 456 789
123 456 789
123 456 789
Consensus networkestablishes order as
123 456 789
THE LEDGER. // Hyperledger @Digipolis
Practical Byzantine Fault Tolerance How does it work – execution
Consensus Network
N
V
VL
Non-validating peer
Validating peer
Validating leader
NV
NVL
N
V
N
V
123
456
789
Transactions submitted to network
123 456 789
123 456 789
123 456 789
123 456 789
Consensus networkestablishes order as
123 456 789
THE LEDGER. // Hyperledger @Digipolis
SecurityandscalabilityEndorser(businesslogic)andcommitter(consensus)
Nowconfidentialtransactionscanbesenttospecificendorsersandtheircorrelatingcommitters,withoutthenetworkbeingmade cognizantofthetransaction.Additionally,policiescanbesettodeterminewhatlevelsof“endorsement”and“validation”areacceptableforaspecificclassoftransactions.
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
THE LEDGER. // Hyperledger @Digipolis
Breakdown … again
MembershipServices
API
Backend apiUser
Endorserkeys
deployInvokeQuery
Register enroll
commiter
Orderer
THE LEDGER. // Hyperledger @Digipolis
Run in the cloud
Ibm - Bluemix
Microsoft - Azure
BaasStarter Developer networkHigh security
EBAASProject Bletchley
THE LEDGER. // Hyperledger @Digipolis
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