SlideShare a Scribd company logo
Blockchain, Ethereum and
Business Applications
@ZimMatthias Matthias Zimmermann
BSI Business Systems Integration AG
The «Valley»


Blockchain Market
Towards understanding Bitcoin …
«history’s first» Blockchain
• Satoshi Nakamoto (?)
• White Paper 2008
• Open Source Software 2009
Coffee at Bob‘s
Source: «Mastering Bitcoin», Andreas M. Antonopoulos
Address
Amount [B]
1GdK9UzpHBzqzX2A9JFP3Di4weBwqgmoQA
0.015
Addresses == «Accounts»
Encoded Numbers
 Example: 1GdK9UzpHBzqzX2A9JFP3Di4weBwqgmoQA
 Derived from a public/private key pair
Getting, using and loosing it
 Create your own addresses, no need to ask anyone
 No ID required, no showing up at local branch, …
 To send Bitcoins you need your private Key
 You loose your private key  you loose your money
What is a Bitcoin Address?
Bitcoin Network
Bitcoin Client
• Sends TX to network
• Mines new blocks
• Holds local copy of
blockchain
Peer-to-Peer Network
Mobile Wallet
Distribution of unconfirmed TX
 To confirm TX:
− TX mined into block
− 5 new blocks on top
 Network mines
TX in ~ 10 min.
 Sometimes this takes
hours …
The Coffee Transaction
Screenshot: blockchain.info
Bob’s Address Coffee Price
My Address
Link to TX Block
TX Fee
 Block #277316
includes coffee TX
Genesis Block
TX Blocks and the Blockchain
419 TX (€495,000)
Link to previous Block#277316
#277315
#2
#1
Screenshot: blockchain.info
Block Hash
do you see the leading zeros?
1. New TX are propagated through Bitcoin peer-to-peer network
2. Bitcoin client receive new TX and add it to local «mempool»
3. Client starts to «mine» transactions:
− Assemble TX from mempool to block candidate
− Starts to solve the block candidate’s crypto challenge
− Client solving the challenge first, gets block reward and all TX fees
3. Winning client sends the new block to its peers
4. Arrival of new block triggers the next challenge
From Transactions to Blocks (Mining)
mzi@BSI ~/Desktop/oss/events/2017/jug_blockchain_2017
$ java DummyBitcoinMiner 1
…
B37060F28617A5DFA3DB9A3D547663B3:I am Satoshi Nakamoto:lubf -> CF6BB3C636DF380E357E28271D948BBC
B37060F28617A5DFA3DB9A3D547663B3:I am Satoshi Nakamoto:jauj -> E6F1EB09AEF0BF331261B64E1C798EAB
B37060F28617A5DFA3DB9A3D547663B3:I am Satoshi Nakamoto:dwpt -> 0CEE0B104F133062073BDD810D3DB6CF
Success with nonce 'dwpt' for difficulty '0'. Hashes calculated: 29
$ java DummyBitcoinMiner 4
…
B37060F28617A5DFA3DB9A3D547663B3:I am Satoshi Nakamoto:quyc -> 89BD526A2DF7EBF41ACD227BFC6B78FE
B37060F28617A5DFA3DB9A3D547663B3:I am Satoshi Nakamoto:ceaw -> 0000AD30B2DDD8A773B8E5AABB5282AD
Success with nonce 'ceaw' for difficulty '0000'. Hashes calculated: 11584
Block Hashes and Crypto Challenge
Difficulty Oct’ 17: 18 leading zeros
Bitcoin Success
 Completely decentral currency (no need for banks)
 Open Source (GitHub) and Open Data (complete TX history)
 First successful implementation of any crypto currency
 «Gold Standard» since 2009
 Record price levels in 2017
Bitcoin Challenges
 Scaling debate/war
 Declining market share (Ethereum, …)
Bitcoin Recap
Bitcoin Resources
https://github.com/bitcoin/bitcoin https://github.com/bitcoinbook/bitcoinbook
Ethereum
Currency and Smart Contracts
• 2014 by Vitalik Buterin
• Distributed VM (Turing complete)
• Open source software
Ethereum vs Bitcoin
Common Traits
 Virtual currency
 Peer-to-peer network/nodes with local blockchain
 Concepts of addresses, transactions, mining
Main Differences
 Specification with different implementations (Bitcoin reference client)
 Smart contracts and Ethereum virtual machine
 Gas to execute smart contracts and TX
What is gas?
 Unit to pay mining nodes
 Unit of gas has price in Ethers
What can we buy with gas?
 Pay TX fees
 Execute smart contracts
 Computations performed by clients: Ethereum Virtual Machine (EVM)
 EVM is working as long as there is gas
 Example 1: SHA3 computation costs 30 gas
 Example 2: EVM always terminates (stays in infinite loop until gas runs out)
Gas
What is a Smart Contract?
 Code written in high level language «Solidity»
 Code is compiled into byte code
 Byte code executed on client by EVM
 Has owner
 Has address
 Can hold currency
Examples
1. Flight delay insurance
2. «Truly» autonomous cars
Ethereum Smart Contracts
Flight Delay App
https://fdd.etherisc.com http://oraclize.it http://www.flightstats.com
 Smart contract: Order car to transport people (fees go to car contract)
 Smart contract: Car pays for energy/services (car pays with it’s own funds)
«Truly» Autonomous Cars
In 2017 RWE introduces charging stations
connected to Ethereum blockchain
http://www.trustnodes.com/2017/04/29/germanys-energy-giant-launches-100s-ethereum-based-electric-cars-charging-stations
https://www.theverge.com/2017/2/21/14687346/uber-self-driving-car-arizona-pilot-ducey-california
«Greeter» with web3
Smart Contract Hello World
Ethereum and Applications
Ethereum Client
Geth/TestRPC/…
Ethereum
Peer-to-Peer Network
Interface
http://localhost:8545 JSON-RPC
JavaScript
web3 web3j
Java
«Hello World» (greeter.sol)
greeter.sol
+ additional state
+ ‘payable’
Solidity Compiler (online)
byte code (EVM)
to deploy contract
Deploy script (JS)
Deploy (Console)
Contract address
Successs 
«Greeter» with web3j
1. Compile greeter.sol
 greeter.bin
 greeter.abi
2. Create wrapper class (use Web3j command line tool)
 Greeter.java
greeter.sol  Greeter.java
https://github.com/matthiaszimmermann/web3j_demo
Trading-Network Demo
Ethereum, web3j, Eclipse Scout
Use Case
 Currency Hedging: Manage buy and sell orders for € / US$
 Classical Business App
− Idendity management: Map users with Ethereum addresses
− web3j library to access Ethereum client
− Eclipse Scout to build application
 Blockchain Benefits
− Efficiency: No central organization/infrastructure
− Trust: Tampering-proof ledger, trust by blockchain
Trading Network Demo
PostgreSQLEthereum Client
TestRPC
web3
Eclipse Scout
Backend
web3j JDBC
Eclipse Scout
UI (web application)
https://github.com/BSI-Business-Systems-Integration-AG/trading-network/tree/features/matthiaszimmermann/jugch_talk_2017
Resources
https://www.ethereum.org/ https://github.com/ethereum/ https://docs.web3j.io/ https://www.eclipse.org/scout/
Summary
Blockchain
 Internet of decentralized trust
 Cool new technology
Technology is great for
 «unbanked»: Machines AND people
 Efficient trustless global exchange for values (and information)
 Distributed business models
Challenges
 Privacy
 Scalability (Bitcoin can do 7 tx/s)
 Energy consuption (Bitcoin power consumption ~ Ecuador)
 Maturity (blockchain still in it’s infancy)
 Regulatory (it’s a mess …)
Wrap-up
Thanks!
«Blockchain, Ethereum and Business Applications»
Additional Material
Bitcoin Market Share
Bitcoin Mining Today
 Mining-pools: Include many ASIC computers (PC way too slow)
 AntMiner: 10,000x faster than PC, burns 10x more electricity
 Energy Costs: # of hashes per KWh is central criteria + cooling(!)
Hashing Power over the Years
10.4 x 1018 H/s
Bitcoin Energy Consumption Index
Bitcoin vs VISA Bitcoin compared to countries
The Challenge
 Mining clients build block candidates independently
 Several new blocks might be found at the «same» time
 Clients may receive new blocks that are inconsistent
 The local copy of the blockchain may have forks
The Solution
 The «true» blockchain is defined by the highest cumulative PoW (difficulty)
 By selecting the greatest-difficulty chain, eventual consensus is achieved
 Miner majority vote defines the true chain
 Miners «vote» for the true chain by deciding which block/fork to extend
Consensus Mechanism
«Preventing Forks»
? ?
Financial Industry getting nervous …

More Related Content

What's hot

Bitcoin, Ethereum, Smart Contract & Blockchain
Bitcoin, Ethereum, Smart Contract & BlockchainBitcoin, Ethereum, Smart Contract & Blockchain
Bitcoin, Ethereum, Smart Contract & Blockchain
Jitendra Chittoda
 
Blockchain Programming
Blockchain ProgrammingBlockchain Programming
Blockchain Programming
Rhea Myers
 
Bitcoin Internal
Bitcoin InternalBitcoin Internal
Bitcoin Internal
Tuan Cuong Luu
 
Introduction to Ethereum
Introduction to EthereumIntroduction to Ethereum
Introduction to Ethereum
Arnold Pham
 
What to expect from Blockchain in 2019?
What to expect from Blockchain in 2019?What to expect from Blockchain in 2019?
What to expect from Blockchain in 2019?
PECB
 
Ethereum-Cryptocurrency (All about Ethereum)
Ethereum-Cryptocurrency (All about Ethereum) Ethereum-Cryptocurrency (All about Ethereum)
Ethereum-Cryptocurrency (All about Ethereum)
عطاءالمنعم اثیل شیخ
 
create your own cryptocurrency
create your own cryptocurrencycreate your own cryptocurrency
create your own cryptocurrency
Bellaj Badr
 
Every thing bitcoin in baby language
Every thing bitcoin in baby languageEvery thing bitcoin in baby language
Every thing bitcoin in baby language
Ossai Nduka
 
BitCoin Protocol
BitCoin ProtocolBitCoin Protocol
BitCoin Protocol
Consulthinkspa
 
Blockchain Corporate Style
Blockchain Corporate StyleBlockchain Corporate Style
Blockchain Corporate Style
Narendranath Reddy
 
How to be a smart contract engineer
How to be a smart contract engineerHow to be a smart contract engineer
How to be a smart contract engineer
Oded Noam
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
seancarmody
 
Introduction to blockchain and crypto currencies
Introduction to blockchain and crypto currenciesIntroduction to blockchain and crypto currencies
Introduction to blockchain and crypto currencies
Rohas Nagpal
 
Bitcoin, Blockchain and the Crypto Contracts - Part 2
Bitcoin, Blockchain and the Crypto Contracts - Part 2Bitcoin, Blockchain and the Crypto Contracts - Part 2
Bitcoin, Blockchain and the Crypto Contracts - Part 2
Prithwis Mukerjee
 
Introduction to Blockchain
Introduction to Blockchain Introduction to Blockchain
Introduction to Blockchain
mohammad alkhalil
 
Ethereum Intro
Ethereum IntroEthereum Intro
Ethereum Intro
Dejan Radic
 
Pi network
Pi networkPi network
BitCoin explained
BitCoin explainedBitCoin explained
BitCoin explained
Harelc
 
Ethereum Mining How To
Ethereum Mining How ToEthereum Mining How To
Ethereum Mining How To
Nugroho Gito
 

What's hot (20)

Bitcoin, Ethereum, Smart Contract & Blockchain
Bitcoin, Ethereum, Smart Contract & BlockchainBitcoin, Ethereum, Smart Contract & Blockchain
Bitcoin, Ethereum, Smart Contract & Blockchain
 
Blockchain Programming
Blockchain ProgrammingBlockchain Programming
Blockchain Programming
 
Bitcoin Internal
Bitcoin InternalBitcoin Internal
Bitcoin Internal
 
Introduction to Ethereum
Introduction to EthereumIntroduction to Ethereum
Introduction to Ethereum
 
bitcoin_presentation
bitcoin_presentationbitcoin_presentation
bitcoin_presentation
 
What to expect from Blockchain in 2019?
What to expect from Blockchain in 2019?What to expect from Blockchain in 2019?
What to expect from Blockchain in 2019?
 
Ethereum-Cryptocurrency (All about Ethereum)
Ethereum-Cryptocurrency (All about Ethereum) Ethereum-Cryptocurrency (All about Ethereum)
Ethereum-Cryptocurrency (All about Ethereum)
 
create your own cryptocurrency
create your own cryptocurrencycreate your own cryptocurrency
create your own cryptocurrency
 
Every thing bitcoin in baby language
Every thing bitcoin in baby languageEvery thing bitcoin in baby language
Every thing bitcoin in baby language
 
BitCoin Protocol
BitCoin ProtocolBitCoin Protocol
BitCoin Protocol
 
Blockchain Corporate Style
Blockchain Corporate StyleBlockchain Corporate Style
Blockchain Corporate Style
 
How to be a smart contract engineer
How to be a smart contract engineerHow to be a smart contract engineer
How to be a smart contract engineer
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
 
Introduction to blockchain and crypto currencies
Introduction to blockchain and crypto currenciesIntroduction to blockchain and crypto currencies
Introduction to blockchain and crypto currencies
 
Bitcoin, Blockchain and the Crypto Contracts - Part 2
Bitcoin, Blockchain and the Crypto Contracts - Part 2Bitcoin, Blockchain and the Crypto Contracts - Part 2
Bitcoin, Blockchain and the Crypto Contracts - Part 2
 
Introduction to Blockchain
Introduction to Blockchain Introduction to Blockchain
Introduction to Blockchain
 
Ethereum Intro
Ethereum IntroEthereum Intro
Ethereum Intro
 
Pi network
Pi networkPi network
Pi network
 
BitCoin explained
BitCoin explainedBitCoin explained
BitCoin explained
 
Ethereum Mining How To
Ethereum Mining How ToEthereum Mining How To
Ethereum Mining How To
 

Similar to Eclipsecon Europe: Blockchain, Ethereum and Business Applications

Blockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business ApplicationsBlockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business Applications
Matthias Zimmermann
 
EthereumBlockchainMarch3 (1).pptx
EthereumBlockchainMarch3 (1).pptxEthereumBlockchainMarch3 (1).pptx
EthereumBlockchainMarch3 (1).pptx
WijdenBenothmen1
 
Blockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentationBlockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentation
Paperchain
 
BlockChain for the Banker
BlockChain for the BankerBlockChain for the Banker
BlockChain for the Banker
Bohdan Szymanik
 
Blockchain and Smart Contract Simulation
Blockchain and Smart Contract SimulationBlockchain and Smart Contract Simulation
Blockchain and Smart Contract Simulation
Jun Furuse
 
Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_li
nikinew1
 
An Introduction to Blockchains
An Introduction to BlockchainsAn Introduction to Blockchains
An Introduction to Blockchains
Dr. Nikolaus Lipusch
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & Ethereum
BlockchainHub Graz
 
Blockchain. A Guide For Beginners
Blockchain. A Guide For BeginnersBlockchain. A Guide For Beginners
Blockchain. A Guide For Beginners
ElifTech
 
New Business Models enabled by Blockchain
New Business Models enabled by BlockchainNew Business Models enabled by Blockchain
New Business Models enabled by Blockchain
Slash
 
Blockchain.pptx
Blockchain.pptxBlockchain.pptx
Blockchain.pptx
manishchaitanya
 
Blockchain
BlockchainBlockchain
Blockchain
Rishabh Sharma
 
Smart contracts
Smart contractsSmart contracts
Smart contracts
Philippe Camacho, Ph.D.
 
20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)
Brussels Legal Hackers
 
[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
 
Blockchain IoT Night / 25th Oct 2017
Blockchain IoT Night / 25th Oct 2017Blockchain IoT Night / 25th Oct 2017
Blockchain IoT Night / 25th Oct 2017
Lothar Wieske
 
IRJET- Blockchain Technology
IRJET- Blockchain TechnologyIRJET- Blockchain Technology
IRJET- Blockchain Technology
IRJET Journal
 
Mind My Value: A decentralised infrastructure for fair and trusted IoT data ...
Mind My Value:  A decentralised infrastructure for fair and trusted IoT data ...Mind My Value:  A decentralised infrastructure for fair and trusted IoT data ...
Mind My Value: A decentralised infrastructure for fair and trusted IoT data ...
Paolo Missier
 
Blockchains - Architecture Overview and Consenus Models - Apr 26th, 2017
Blockchains - Architecture Overview and Consenus Models - Apr 26th, 2017Blockchains - Architecture Overview and Consenus Models - Apr 26th, 2017
Blockchains - Architecture Overview and Consenus Models - Apr 26th, 2017
Lothar Wieske
 
Blockchain
BlockchainBlockchain
Blockchain
Mohit Singh
 

Similar to Eclipsecon Europe: Blockchain, Ethereum and Business Applications (20)

Blockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business ApplicationsBlockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business Applications
 
EthereumBlockchainMarch3 (1).pptx
EthereumBlockchainMarch3 (1).pptxEthereumBlockchainMarch3 (1).pptx
EthereumBlockchainMarch3 (1).pptx
 
Blockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentationBlockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentation
 
BlockChain for the Banker
BlockChain for the BankerBlockChain for the Banker
BlockChain for the Banker
 
Blockchain and Smart Contract Simulation
Blockchain and Smart Contract SimulationBlockchain and Smart Contract Simulation
Blockchain and Smart Contract Simulation
 
Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_li
 
An Introduction to Blockchains
An Introduction to BlockchainsAn Introduction to Blockchains
An Introduction to Blockchains
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & Ethereum
 
Blockchain. A Guide For Beginners
Blockchain. A Guide For BeginnersBlockchain. A Guide For Beginners
Blockchain. A Guide For Beginners
 
New Business Models enabled by Blockchain
New Business Models enabled by BlockchainNew Business Models enabled by Blockchain
New Business Models enabled by Blockchain
 
Blockchain.pptx
Blockchain.pptxBlockchain.pptx
Blockchain.pptx
 
Blockchain
BlockchainBlockchain
Blockchain
 
Smart contracts
Smart contractsSmart contracts
Smart contracts
 
20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)
 
[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 맹개발
 
Blockchain IoT Night / 25th Oct 2017
Blockchain IoT Night / 25th Oct 2017Blockchain IoT Night / 25th Oct 2017
Blockchain IoT Night / 25th Oct 2017
 
IRJET- Blockchain Technology
IRJET- Blockchain TechnologyIRJET- Blockchain Technology
IRJET- Blockchain Technology
 
Mind My Value: A decentralised infrastructure for fair and trusted IoT data ...
Mind My Value:  A decentralised infrastructure for fair and trusted IoT data ...Mind My Value:  A decentralised infrastructure for fair and trusted IoT data ...
Mind My Value: A decentralised infrastructure for fair and trusted IoT data ...
 
Blockchains - Architecture Overview and Consenus Models - Apr 26th, 2017
Blockchains - Architecture Overview and Consenus Models - Apr 26th, 2017Blockchains - Architecture Overview and Consenus Models - Apr 26th, 2017
Blockchains - Architecture Overview and Consenus Models - Apr 26th, 2017
 
Blockchain
BlockchainBlockchain
Blockchain
 

Recently uploaded

The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 

Recently uploaded (20)

The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 

Eclipsecon Europe: Blockchain, Ethereum and Business Applications

  • 1. Blockchain, Ethereum and Business Applications @ZimMatthias Matthias Zimmermann BSI Business Systems Integration AG
  • 2.
  • 5.
  • 7. «history’s first» Blockchain • Satoshi Nakamoto (?) • White Paper 2008 • Open Source Software 2009
  • 8. Coffee at Bob‘s Source: «Mastering Bitcoin», Andreas M. Antonopoulos Address Amount [B] 1GdK9UzpHBzqzX2A9JFP3Di4weBwqgmoQA 0.015
  • 9. Addresses == «Accounts» Encoded Numbers  Example: 1GdK9UzpHBzqzX2A9JFP3Di4weBwqgmoQA  Derived from a public/private key pair Getting, using and loosing it  Create your own addresses, no need to ask anyone  No ID required, no showing up at local branch, …  To send Bitcoins you need your private Key  You loose your private key  you loose your money What is a Bitcoin Address?
  • 10. Bitcoin Network Bitcoin Client • Sends TX to network • Mines new blocks • Holds local copy of blockchain Peer-to-Peer Network Mobile Wallet
  • 12.  To confirm TX: − TX mined into block − 5 new blocks on top  Network mines TX in ~ 10 min.  Sometimes this takes hours … The Coffee Transaction Screenshot: blockchain.info Bob’s Address Coffee Price My Address Link to TX Block TX Fee
  • 13.  Block #277316 includes coffee TX Genesis Block TX Blocks and the Blockchain 419 TX (€495,000) Link to previous Block#277316 #277315 #2 #1 Screenshot: blockchain.info Block Hash do you see the leading zeros?
  • 14. 1. New TX are propagated through Bitcoin peer-to-peer network 2. Bitcoin client receive new TX and add it to local «mempool» 3. Client starts to «mine» transactions: − Assemble TX from mempool to block candidate − Starts to solve the block candidate’s crypto challenge − Client solving the challenge first, gets block reward and all TX fees 3. Winning client sends the new block to its peers 4. Arrival of new block triggers the next challenge From Transactions to Blocks (Mining)
  • 15. mzi@BSI ~/Desktop/oss/events/2017/jug_blockchain_2017 $ java DummyBitcoinMiner 1 … B37060F28617A5DFA3DB9A3D547663B3:I am Satoshi Nakamoto:lubf -> CF6BB3C636DF380E357E28271D948BBC B37060F28617A5DFA3DB9A3D547663B3:I am Satoshi Nakamoto:jauj -> E6F1EB09AEF0BF331261B64E1C798EAB B37060F28617A5DFA3DB9A3D547663B3:I am Satoshi Nakamoto:dwpt -> 0CEE0B104F133062073BDD810D3DB6CF Success with nonce 'dwpt' for difficulty '0'. Hashes calculated: 29 $ java DummyBitcoinMiner 4 … B37060F28617A5DFA3DB9A3D547663B3:I am Satoshi Nakamoto:quyc -> 89BD526A2DF7EBF41ACD227BFC6B78FE B37060F28617A5DFA3DB9A3D547663B3:I am Satoshi Nakamoto:ceaw -> 0000AD30B2DDD8A773B8E5AABB5282AD Success with nonce 'ceaw' for difficulty '0000'. Hashes calculated: 11584 Block Hashes and Crypto Challenge Difficulty Oct’ 17: 18 leading zeros
  • 16. Bitcoin Success  Completely decentral currency (no need for banks)  Open Source (GitHub) and Open Data (complete TX history)  First successful implementation of any crypto currency  «Gold Standard» since 2009  Record price levels in 2017 Bitcoin Challenges  Scaling debate/war  Declining market share (Ethereum, …) Bitcoin Recap
  • 19. Currency and Smart Contracts • 2014 by Vitalik Buterin • Distributed VM (Turing complete) • Open source software
  • 20. Ethereum vs Bitcoin Common Traits  Virtual currency  Peer-to-peer network/nodes with local blockchain  Concepts of addresses, transactions, mining Main Differences  Specification with different implementations (Bitcoin reference client)  Smart contracts and Ethereum virtual machine  Gas to execute smart contracts and TX
  • 21. What is gas?  Unit to pay mining nodes  Unit of gas has price in Ethers What can we buy with gas?  Pay TX fees  Execute smart contracts  Computations performed by clients: Ethereum Virtual Machine (EVM)  EVM is working as long as there is gas  Example 1: SHA3 computation costs 30 gas  Example 2: EVM always terminates (stays in infinite loop until gas runs out) Gas
  • 22. What is a Smart Contract?  Code written in high level language «Solidity»  Code is compiled into byte code  Byte code executed on client by EVM  Has owner  Has address  Can hold currency Examples 1. Flight delay insurance 2. «Truly» autonomous cars Ethereum Smart Contracts
  • 23. Flight Delay App https://fdd.etherisc.com http://oraclize.it http://www.flightstats.com
  • 24.  Smart contract: Order car to transport people (fees go to car contract)  Smart contract: Car pays for energy/services (car pays with it’s own funds) «Truly» Autonomous Cars In 2017 RWE introduces charging stations connected to Ethereum blockchain http://www.trustnodes.com/2017/04/29/germanys-energy-giant-launches-100s-ethereum-based-electric-cars-charging-stations https://www.theverge.com/2017/2/21/14687346/uber-self-driving-car-arizona-pilot-ducey-california
  • 25. «Greeter» with web3 Smart Contract Hello World
  • 26. Ethereum and Applications Ethereum Client Geth/TestRPC/… Ethereum Peer-to-Peer Network Interface http://localhost:8545 JSON-RPC JavaScript web3 web3j Java
  • 29. Solidity Compiler (online) byte code (EVM) to deploy contract Deploy script (JS)
  • 32.
  • 33. 1. Compile greeter.sol  greeter.bin  greeter.abi 2. Create wrapper class (use Web3j command line tool)  Greeter.java greeter.sol  Greeter.java
  • 36. Use Case  Currency Hedging: Manage buy and sell orders for € / US$  Classical Business App − Idendity management: Map users with Ethereum addresses − web3j library to access Ethereum client − Eclipse Scout to build application  Blockchain Benefits − Efficiency: No central organization/infrastructure − Trust: Tampering-proof ledger, trust by blockchain Trading Network Demo
  • 37. PostgreSQLEthereum Client TestRPC web3 Eclipse Scout Backend web3j JDBC Eclipse Scout UI (web application) https://github.com/BSI-Business-Systems-Integration-AG/trading-network/tree/features/matthiaszimmermann/jugch_talk_2017
  • 38.
  • 39.
  • 42. Blockchain  Internet of decentralized trust  Cool new technology Technology is great for  «unbanked»: Machines AND people  Efficient trustless global exchange for values (and information)  Distributed business models Challenges  Privacy  Scalability (Bitcoin can do 7 tx/s)  Energy consuption (Bitcoin power consumption ~ Ecuador)  Maturity (blockchain still in it’s infancy)  Regulatory (it’s a mess …) Wrap-up
  • 43. Thanks! «Blockchain, Ethereum and Business Applications»
  • 45.
  • 47. Bitcoin Mining Today  Mining-pools: Include many ASIC computers (PC way too slow)  AntMiner: 10,000x faster than PC, burns 10x more electricity  Energy Costs: # of hashes per KWh is central criteria + cooling(!) Hashing Power over the Years 10.4 x 1018 H/s
  • 48. Bitcoin Energy Consumption Index Bitcoin vs VISA Bitcoin compared to countries
  • 49. The Challenge  Mining clients build block candidates independently  Several new blocks might be found at the «same» time  Clients may receive new blocks that are inconsistent  The local copy of the blockchain may have forks The Solution  The «true» blockchain is defined by the highest cumulative PoW (difficulty)  By selecting the greatest-difficulty chain, eventual consensus is achieved  Miner majority vote defines the true chain  Miners «vote» for the true chain by deciding which block/fork to extend Consensus Mechanism «Preventing Forks» ? ?

Editor's Notes

  1. You probably have heard of bitcoin and there is also a foundation to it There is also a foundation for ethereum, as well as for most other cryptocurrencies With the current hype, individuals create blockchain startups and organizations build/or join alliances Now there is even a «blockchain valley» https://bitcoinfoundation.org/ https://www.ethereum.org/foundation https://www.hyperledger.org/ https://www.aegon.com/en/Home/Investors/News-releases/2017/blockchain-initiative-b3i-gains-truly-international-scope/ http://cryptovalley.swiss/ https://ww2.frost.com/files/cache/a701d7ea2011161d4eaeed6364153683_f16618.jpg
  2. The blockchain valley – or just valley for real blockchainers Is not located in the bay area But rather in the center of switzerland between the smallish town of zug and the somewhat larger city of zurich …
  3. A big part of the current hype around blockchain is ist rapidly growing market Currently, the market captializaion of bitcoin and ethereum match the gdp of complete countries such as croatia and cyprus https://coinmarketcap.com/currencies/ (accessed 17.10.17) https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(PPP) (accessed 17.10.17)
  4. And all this money contributes heavily to the hype around blockchain and the interest of many people to catch the trend. Unfortunately, less people show a keen interest to understand about the technology As this is a technical conference we can now afford to move towards understanding blockchain technology
  5. Starten wir mit Bitcoin
  6. with complete TX history ~ 150 GB
  7. https://blockchain.info/unconfirmed-transactions https://blockchain.info/address/199kWQQSMfUWRaLJ7mVGN6SQjEHegC3gqD
  8. Bei hashwert für diesen block: vom miner gefundene hashwert. Hashwerte sehen üblicherweise zufällig aus, dass dieser wert mit so viel nullen beginnt ist kein zufall, der wurde vom bitcoin client gefunden, der diesen block gemint hat. Wir werden etwas später noch auf das mining kommen.
  9. https://github.com/bitcoin/bitcoin https://github.com/bitcoinbook/bitcoinbook
  10. https://ethereum.stackexchange.com/questions/3/what-is-gas-and-transaction-fee-in-ethereum
  11. https://fdd.etherisc.com/ http://www.oraclize.it/ http://www.flightstats.com
  12. http://www.trustnodes.com/2017/04/29/germanys-energy-giant-launches-100s-ethereum-based-electric-cars-charging-stations (29.4.17) https://www.theverge.com/2017/2/21/14687346/uber-self-driving-car-arizona-pilot-ducey-california (21.2.17)
  13. https://github.com/ethereum/wiki/wiki/JSON-RPC https://github.com/ethereum/wiki/wiki/JavaScript-API https://github.com/web3j/web3j
  14. https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.11+commit.68ef5810.js
  15. cd /usr/lib/node_modules/ethereumjs-testrpc/ node var Web3 = require('web3') var web3 = new Web3() web3.setProvider(new Web3.providers.HttpProvider('http://localhost:8545')) var _greeting = 'hello world'; var greeterContract = web3.eth.contract([{"constant":true,"inputs":[],"name":"deposits","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"greet","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"inputs":[{"name":"_greeting","type":"string"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"}]); var greeter = greeterContract.new( _greeting, { from: web3.eth.accounts[0], data: '0x6060604052341561000c57fe5b604051610407380380610407833981016040528080518201919050505b33600060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060029080519060200190610080929190610090565b5060006001819055505b50610135565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100d157805160ff19168380011785556100ff565b828001600101855582156100ff579182015b828111156100fe5782518255916020019190600101906100e3565b5b50905061010c9190610110565b5090565b61013291905b8082111561012e576000816000905550600101610116565b5090565b90565b6102c3806101446000396000f30060606040523615610055576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063323a5e0b1461006f57806341c0e1b514610095578063cfae3217146100a7575b61006d5b60016001600082825401925050819055505b565b005b341561007757fe5b61007f610140565b6040518082815260200191505060405180910390f35b341561009d57fe5b6100a5610146565b005b34156100af57fe5b6100b76101da565b6040518080602001828103825283818151815260200191508051906020019080838360008314610106575b805182526020831115610106576020820191506020810190506020830392506100e2565b505050905090810190601f1680156101325780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60015481565b600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156101d757600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff5b5b565b6101e2610283565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156102785780601f1061024d57610100808354040283529160200191610278565b820191906000526020600020905b81548152906001019060200180831161025b57829003601f168201915b505050505090505b90565b6020604051908101604052806000815250905600a165627a7a7230582068de189378347d9696c8e6b9ec4ab219cbf7e39fdf00babb6003c0bbea5cec5a0029', gas: '4700000' }, function (e, contract){ console.log(e, contract); if (typeof contract.address !== 'undefined') { console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash); } }); greeter.address greeter.greet() greeter.deposits() web3.fromWei(web3.eth.getBalance(greeter.address), "ether") web3.eth.sendTransaction({from: web3.eth.coinbase, to:greeter.address, value: web3.toWei(0.5, "ether")}) web3.fromWei(web3.eth.getBalance(greeter.address), "ether") greeter.deposits()
  16. https://github.com/BSI-Business-Systems-Integration-AG/trading-network/tree/features/matthiaszimmermann/jugch_talk_2017
  17. https://www.ethereum.org/ https://github.com/ethereum/
  18. https://www.coinbase.com/charts?locale=en (accessed 25.10.17)
  19. https://coinmarketcap.com/charts/ (bottom of page) [accessed 17.10.17]
  20. https://blockchain.info/charts/hash-rate?timespan=all http://www.coindesk.com/blockchain-immutability-myth/ https://shop.bitmain.com/market.htm?name=antminer_s9_asic_bitcoin_miner
  21. https://digiconomist.net/bitcoin-energy-consumption (accessed 25.10.17)
  22. These days every body seems to have a clearn opinion. And as banks and insurances are in the trust business are getting nervous … https://www.coindesk.com/massive-disruption-imfs-lagarde-says-cryptocurrencies-must-be-taken-seriously/ (accessed 24.10.17) https://www.wired.com/story/captains-of-finance-dismiss-bitcoin-at-their-peril/ (accessed 24.10.17)