SlideShare a Scribd company logo
HYPERLEDGER
(SMART CONTRACTS ON BLOCKCHAIN)
& JAVASCRIPT
SEM Lightning Talk; June 11, 2018
Björn Simon @BjrnSmn
WHY IS THIS IMPORTANT?
• “What the internet did for communications, blockchain will do for
trusted transactions.” — Ginni Rometty (CEO of IBM)
• Potential to disrupt and improve across most industries
• Foundational Technology – “The next big thing”…
• Impact compared to invention of
• Internet &
• Open-Source
• For me, personally:
• Who do you trust with your data?
• How can I share securely on a need-to-know-bases and maintain
privacy?
USE CASES?
Source: https://youtu.be/gAxK6zYrfxI?t=89 IBM: Building Blockchain Apps With HyperLedger
Composer
USE CASES!
Source: https://youtu.be/gAxK6zYrfxI?t=112 IBM: Building Blockchain Apps With HyperLedger
Composer
MORE USE CASES!
• Goods tracking
• Shipments, food, e.g. track temperature & location via IoT sensors
• Fintech
• Sharing economies
• Energy
• Digital identify
• Identity, educational certificates/degrees, benefits
• Medical records
• Prevent human trafficking
BLOCKCHAIN, BITCOIN, HYPERLEDGER?
Peer-2-Peer
Crypto HashCrypto Hash
Distributed
Consensus
Blockchain
Crypto
Currency
Smart
Contracts
Ethereum +
Solidity
HyperLedger
Event
Processing
• Linux foundation, 2015, >140
members
• Focus on Smart Contracts &
decentralized enterprise
applications
• Scalability
• Node.js support
Bitcoin
ACL, Privacy
WHAT IS BLOCKCHAIN?
• Immutable, append only ledger
• Cryptographically hashed
Source: https://www.thoughtworks.com/insights/blog/blockchain-under-hood
WHAT IS BLOCKCHAIN?
• Trusted, distributed ledger
• Peer-2-peer
• Consensus
Source: https://en.bitcoinwiki.org/wiki/File:Peer-to-peer.png
HYPERLEDGER TOOLING
Source: https://youtu.be/gAxK6zYrfxI?t=576
EXAMPLE CODE (1)
/**.cto: Businesss definition */
namespace org.ex1
asset MyAsset identified by assetId {
o String assetId
--> MyParticipant owner
o String value
}
participant SampleParticipant
identified by participantId {
/*…*/ }
Source: https://composer-playground.mybluemix.net/editor
// Sample Asset:
{ "$class": "org.ex1.MyAsset",
"assetId": "assetId:1",
"owner": "resource:org.ex1.MyParticipant#Toby",
"value": "original value"
}
// Sample Participant:
{ "$class": "org.ex1.MyParticipant",
"participantId": "Toby",
"firstName": "Tobias", "lastName": "Hunter"
}
EXAMPLE CODE (2)
/**.cto: Businesss definition, part 2 */
transaction SampleTransaction {
--> MyAsset asset
o String newValue
}
event MyEvent {
--> MyAsset asset
o String oldValue
o String newValue
}
Source: https://composer-playground.mybluemix.net/editor
// Sample Transaction:
{"$class": "org.ex1.MyTransaction",
"asset": "resource:org.ex1.MyAsset#assetId:1",
"newValue": "new value"
}
EXAMPLE CODE (3)
/** Transaction processing .js */
async function sampleTransaction(tx) {
const oldValue = tx.asset.value;
...
const assetRegistry = await getAssetRegistry('org.ex1.MyAsset');
// Update asset in registry
await assetRegistry.update(tx.asset);
// Emit event for modified asset
let event = getFactory().newEvent('org.ex1', ‘MyEvent');
...; emit(event);
}
Source: https://composer-playground.mybluemix.net/editor
HOW TO RUN HYPERLEDGER?
• Run in browser: https://composer-playground.mybluemix.net/
• Local Docker: https://hyperledger.github.io/composer/latest/installing/installing-
index.html
• Cloud
• AWS: https://aws.amazon.com/blockchain/
• Azure: https://azure.microsoft.com/en-us/solutions/blockchain/
• IBM: https://www.ibm.com/blockchain/hyperledger
• Oracle: https://www.oracle.com/cloud/blockchain/index.html
• …
FURTHER RESOURCES
• https://www.computerworld.com/article/3191077/security/what-is-
blockchain-the-most-disruptive-tech-in-decades.html
• https://medium.com/@madronaventurelabs/building-enterprise-
blockchain-applications-in-hyperledger-8d869bb214d9
• https://www.slideshare.net/SimonStone8/hyperledger-composer-
architecture
• Blockchain visual demo: https://anders.com/blockchain/
• https://www.hyperledger.org/projects/sawtooth &
https://github.com/hyperledger
• https://www.linkedin.com/pulse/git-blockchain-dave-mercer/
• https://www-
01.ibm.com/events/wwe/grp/grp308.nsf/vLookupPDFs/blockchain%20ar
chtage/$file/blockchain%20archtage.pdf
QUESTIONS?
• Thank you!

More Related Content

PDF
IBM Connections REST-API Waltz
PPTX
IBM Connections REST API Klompendans
PPTX
IBM Connections REST API Hip-Hop
PDF
An introduction to blockchain and hyperledger v ru
PDF
Blockchain_Certification_2018_V5.pdf
PPTX
Hyperledger
PPTX
Building blockchain applications using Java
PDF
Blockchin architecture azure meetup
IBM Connections REST-API Waltz
IBM Connections REST API Klompendans
IBM Connections REST API Hip-Hop
An introduction to blockchain and hyperledger v ru
Blockchain_Certification_2018_V5.pdf
Hyperledger
Building blockchain applications using Java
Blockchin architecture azure meetup

Similar to HyperLedger Lightning-Talk BjoernSimon (20)

ODP
Blockchain Introduction
PDF
Blockchain intro demo_052018
PPTX
North Atlanta Blockchain - Hyperledger A Brief Overview
PDF
Basics of Block Chain
PPTX
BlockChain-1.pptx
PPTX
Block chain fundamentals and hyperledger
PPTX
BlockChain-1.pptx
PDF
Blockchain for Business on Hyperledger
PDF
Wwc developing hyperledger applications v2
PDF
blockchain for business
PDF
Blockchain Fundamental_KIPMI_2022.02.26.pdf
PDF
Wwc developing hyperledger applications v4
ODP
Hyperledger Fabric and Tools
PPTX
Blockchain with HyperLedger (Public version)
PPTX
Blockchain Technology ,Architecture and its Structure
PPTX
Introduction to blockchain and smart contracts
PPT
Blockchain Technology
PDF
Ibm blockchain - Hyperledger 15.02.18
PDF
SFScon19 - Nabil El Ioini - Open Source Blockchain Technologies With the Hype...
PDF
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
Blockchain Introduction
Blockchain intro demo_052018
North Atlanta Blockchain - Hyperledger A Brief Overview
Basics of Block Chain
BlockChain-1.pptx
Block chain fundamentals and hyperledger
BlockChain-1.pptx
Blockchain for Business on Hyperledger
Wwc developing hyperledger applications v2
blockchain for business
Blockchain Fundamental_KIPMI_2022.02.26.pdf
Wwc developing hyperledger applications v4
Hyperledger Fabric and Tools
Blockchain with HyperLedger (Public version)
Blockchain Technology ,Architecture and its Structure
Introduction to blockchain and smart contracts
Blockchain Technology
Ibm blockchain - Hyperledger 15.02.18
SFScon19 - Nabil El Ioini - Open Source Blockchain Technologies With the Hype...
IBM Cloud Côte D'Azur Meetup - 20181004 - Blockchain Hyperledger Workshop
Ad

Recently uploaded (20)

DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Encapsulation theory and applications.pdf
PPTX
Cloud computing and distributed systems.
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
Teaching material agriculture food technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Review of recent advances in non-invasive hemoglobin estimation
The AUB Centre for AI in Media Proposal.docx
Digital-Transformation-Roadmap-for-Companies.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Empathic Computing: Creating Shared Understanding
Understanding_Digital_Forensics_Presentation.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Encapsulation theory and applications.pdf
Cloud computing and distributed systems.
Chapter 3 Spatial Domain Image Processing.pdf
cuic standard and advanced reporting.pdf
Approach and Philosophy of On baking technology
Encapsulation_ Review paper, used for researhc scholars
Reach Out and Touch Someone: Haptics and Empathic Computing
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Teaching material agriculture food technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Machine learning based COVID-19 study performance prediction
Review of recent advances in non-invasive hemoglobin estimation
Ad

HyperLedger Lightning-Talk BjoernSimon

  • 1. HYPERLEDGER (SMART CONTRACTS ON BLOCKCHAIN) & JAVASCRIPT SEM Lightning Talk; June 11, 2018 Björn Simon @BjrnSmn
  • 2. WHY IS THIS IMPORTANT? • “What the internet did for communications, blockchain will do for trusted transactions.” — Ginni Rometty (CEO of IBM) • Potential to disrupt and improve across most industries • Foundational Technology – “The next big thing”… • Impact compared to invention of • Internet & • Open-Source • For me, personally: • Who do you trust with your data? • How can I share securely on a need-to-know-bases and maintain privacy?
  • 3. USE CASES? Source: https://youtu.be/gAxK6zYrfxI?t=89 IBM: Building Blockchain Apps With HyperLedger Composer
  • 4. USE CASES! Source: https://youtu.be/gAxK6zYrfxI?t=112 IBM: Building Blockchain Apps With HyperLedger Composer
  • 5. MORE USE CASES! • Goods tracking • Shipments, food, e.g. track temperature & location via IoT sensors • Fintech • Sharing economies • Energy • Digital identify • Identity, educational certificates/degrees, benefits • Medical records • Prevent human trafficking
  • 6. BLOCKCHAIN, BITCOIN, HYPERLEDGER? Peer-2-Peer Crypto HashCrypto Hash Distributed Consensus Blockchain Crypto Currency Smart Contracts Ethereum + Solidity HyperLedger Event Processing • Linux foundation, 2015, >140 members • Focus on Smart Contracts & decentralized enterprise applications • Scalability • Node.js support Bitcoin ACL, Privacy
  • 7. WHAT IS BLOCKCHAIN? • Immutable, append only ledger • Cryptographically hashed Source: https://www.thoughtworks.com/insights/blog/blockchain-under-hood
  • 8. WHAT IS BLOCKCHAIN? • Trusted, distributed ledger • Peer-2-peer • Consensus Source: https://en.bitcoinwiki.org/wiki/File:Peer-to-peer.png
  • 10. EXAMPLE CODE (1) /**.cto: Businesss definition */ namespace org.ex1 asset MyAsset identified by assetId { o String assetId --> MyParticipant owner o String value } participant SampleParticipant identified by participantId { /*…*/ } Source: https://composer-playground.mybluemix.net/editor // Sample Asset: { "$class": "org.ex1.MyAsset", "assetId": "assetId:1", "owner": "resource:org.ex1.MyParticipant#Toby", "value": "original value" } // Sample Participant: { "$class": "org.ex1.MyParticipant", "participantId": "Toby", "firstName": "Tobias", "lastName": "Hunter" }
  • 11. EXAMPLE CODE (2) /**.cto: Businesss definition, part 2 */ transaction SampleTransaction { --> MyAsset asset o String newValue } event MyEvent { --> MyAsset asset o String oldValue o String newValue } Source: https://composer-playground.mybluemix.net/editor // Sample Transaction: {"$class": "org.ex1.MyTransaction", "asset": "resource:org.ex1.MyAsset#assetId:1", "newValue": "new value" }
  • 12. EXAMPLE CODE (3) /** Transaction processing .js */ async function sampleTransaction(tx) { const oldValue = tx.asset.value; ... const assetRegistry = await getAssetRegistry('org.ex1.MyAsset'); // Update asset in registry await assetRegistry.update(tx.asset); // Emit event for modified asset let event = getFactory().newEvent('org.ex1', ‘MyEvent'); ...; emit(event); } Source: https://composer-playground.mybluemix.net/editor
  • 13. HOW TO RUN HYPERLEDGER? • Run in browser: https://composer-playground.mybluemix.net/ • Local Docker: https://hyperledger.github.io/composer/latest/installing/installing- index.html • Cloud • AWS: https://aws.amazon.com/blockchain/ • Azure: https://azure.microsoft.com/en-us/solutions/blockchain/ • IBM: https://www.ibm.com/blockchain/hyperledger • Oracle: https://www.oracle.com/cloud/blockchain/index.html • …
  • 14. FURTHER RESOURCES • https://www.computerworld.com/article/3191077/security/what-is- blockchain-the-most-disruptive-tech-in-decades.html • https://medium.com/@madronaventurelabs/building-enterprise- blockchain-applications-in-hyperledger-8d869bb214d9 • https://www.slideshare.net/SimonStone8/hyperledger-composer- architecture • Blockchain visual demo: https://anders.com/blockchain/ • https://www.hyperledger.org/projects/sawtooth & https://github.com/hyperledger • https://www.linkedin.com/pulse/git-blockchain-dave-mercer/ • https://www- 01.ibm.com/events/wwe/grp/grp308.nsf/vLookupPDFs/blockchain%20ar chtage/$file/blockchain%20archtage.pdf

Editor's Notes

  • #4: Duplicated records: inefficient, slow What happens if these records differ?
  • #5: Shared Ledger: Append only, distributed Privacy: Who can see or update what Smart Contract: Business terms/rules embedded & automatically executed Trust: Events & transactions are verified & endorsed
  • #9: Blockchain – foundational technology, like the internet. Many known concepts: Distributed consensus – similar to distributed system consensus Event processing - react to events, execute code stored in Smart contracts Cryptographically signing – like JWT Peer-2-Peer – like Torrent
  • #10: Many known concepts: Distributed consensus – similar to distributed system consensus Event processing - react to events, execute code stored in Smart contracts Cryptographically signing – like JWT Peer-2-Peer – like Torrent
  • #11: Many known concepts: Distributed consensus – similar to distributed system consensus Event processing - react to events, execute code stored in Smart contracts Cryptographically signing – like JWT Peer-2-Peer – like Torrent
  • #12: Shared Ledger: Append only, distributed Privacy: Who can see or update what Smart Contract: Business terms/rules embedded & automatically executed Trust: Events & transactions are verified & endorsed
  • #15: Distributed state/database & Function as a Service