SlideShare a Scribd company logo
1 of 25
Download to read offline
BLOCKCHAINS TO THE RESCUE
DECENTRALISED WHATEVER
DECENTRALISED WHATEVER - BLOCKCHAINS TO THE RESCUE
ABOUT ME
▸ Maximilian Reichel
▸ Silpion IT-Solutions GmbH
▸ Web-Engineering
DECENTRALISED WHATEVER - BLOCKCHAINS TO THE RESCUE
TOC
▸ blockchain basics
▸ block generation (proof-of-work, proof-of-stake)
▸ consensus and security considerations
▸ decentralised applications (Ðapps)
▸ some use cases
BLOCKCHAIN BASICS
IT’S JUST A DATABASE
▸ distributed
▸ immutable
▸ permanent
▸ verifiable
▸ auditable
BLOCKCHAIN BASICS
CENTRALISED
Source: On Distributed Communications Networks, Paul Baran, 1962
BLOCKCHAIN BASICS
DECENTRALISED
Source: On Distributed Communications Networks, Paul Baran, 1962
BLOCKCHAIN BASICS
DISTRIBUTED
Source: On Distributed Communications Networks, Paul Baran, 1962
BLOCKCHAIN BASICS
PLAIN OLD DATABASE
TxId TxType Sender Recipient Payload
#1000 Asset-Transfer Account A Account B 10
#1001 Asset-Transfer Account B Account C 5
#1002 Asset-Transfer Account A Account C 5
#1003 Asset-Transfer Account C Account A 10
BLOCKCHAIN BASICS
BLOCK
TxId TxType Sender Recipient Payload
<HASH> Asset-Transfer Account A Account B 10
<HASH> Asset-Transfer Account B Account C 5
<HASH> Asset-Transfer Account A Account C 5
<HASH> Asset-Transfer Account C Account A 10
Merkle Root
Previous Block
<HASH>
<HASH OF PREVIOUS BLOCK HEADER>
TransactionsHeader
BLOCKCHAIN BASICS
BLOCKCHAIN
TxId TxType Sender Recipient Payload
… … … … …
… … … … …
… … … … …
… … … … …
Previous Block
Merkle Root
<HASH>
<HASH>
TxId TxType Sender Recipient Payload
… … … … …
… … … … …
Previous Block
Merkle Root
<HASH>
<HASH>
TxId TxType Sender Recipient Payload
… … … … …
… … … … …
… … … … …
Previous Block
Merkle Root
<HASH>
<HASH>
BLOCKCHAIN BASICS
BASIC SECURITY CONCEPTS
▸ asymmetric key cryptography (RSA, Curve25519, …)
▸ cryptographic hash functions (SHA, SCRYPT, …)
▸ public-/private key
▸ verify/sign transactions
BLOCKCHAIN BASICS
SECURE TRANSACTIONS
TxId TxType Sender Recipient Payload Sender Signature
<HASH> Asset-Transfer <PUBLIC KEY> <PUBLIC KEY> 10 <SIGNATURE>
<HASH> Private Msg <PUBLIC KEY> <PUBLIC KEY> <CIPHERTEXT> <SIGNATURE>
<HASH> Public Msg <PUBLIC KEY> <PUBLIC KEY> Hey Dude! <SIGNATURE>
<HASH> Arbitrary Data <PUBLIC KEY> <PUBLIC KEY> <BLOB> <SIGNATURE>
BLOCK GENERATION
TRANSACTION BROADCAST
TxId TxType Sender Recipient Payload Sender Signature
#1 Asset-Transfer <PUBLIC KEY> <PUBLIC KEY> 10 <SIGNATURE>
#2 Private Msg <PUBLIC KEY> <PUBLIC KEY> <CIPHERTEXT> <SIGNATURE>
#3 Public Msg <PUBLIC KEY> <PUBLIC KEY> Hey Dude! <SIGNATURE>
Tx #1
Tx #3
Tx #2
unconfirmed transactions
BLOCK GENERATION
MINING
BLOCK GENERATION
PROOF OF WORK
▸ based on the computing power
(hashrate)
▸ may lead to centralisation (mining
pools, asic manufactures)
▸ waste of energy
BLOCK GENERATION
BLOCK TEMPLATE
TxId TxType TxFee Sender Recipient Payload
<HASH> Asset-Transfer 3 Account A Account B 10
<HASH> Asset-Transfer 1 Account B Account C 5
<HASH> Asset-Transfer 1 Account A Account C 5
<HASH> Asset-Transfer 5 Account C Account A 10
Merkle Root
Previous Block
cc0d7e487c44bb1f28e83a15b0f1c4507499
001f2844e83a15b0f1c4507499cc0d7e487c
TransactionsHeader
Nonce ????
BLOCK GENERATION
HASHCASH
Merkle Root
Previous Block
cc0d7e487c44bb1f28e83a15b0f1c4507499
001f2844e83a15b0f1c4507499cc0d7e487c
Header
Nonce ????
Block Hash <HASH>(HEADER)
Difficulty 32 (0000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
#1 (nonce=100) <HASH>(HEADER) = 87c44bb1f28e83a15b0f1c4507499cc0d7e4
#2 (nonce=101) <HASH>(HEADER) = 3a15b0f1c4507499cc0d7e487c44bb1f28e8
#3 (nonce=102) <HASH>(HEADER) = 00c0d7e487c44bb1f28e83a15b0f1c450749
#4 (nonce=103) <HASH>(HEADER) = 0000b1f28e83d7e487c4f1c4507494ba15b0
BLOCK GENERATION
PROOF OF STAKE
▸ based on the amount of stake (tokens)
▸ still unsolved issues (nothing at stake)
▸ almost anyone (with low computing power) can
participate
BLOCK GENERATION
NEW BLOCK BROADCAST
▸ new block will be broadcasted
▸ the “best” block/chain (highest difficulty) wins
▸ generator gets rewarded (eg. transaction fees and/or
new tokens)
CONSENSUS AND SECURITY CONSIDERATIONS
CONSENSUS
▸ code is law
▸ build-in (peers, smart contracts, …)
▸ no central authority (admin, government, …)
▸ majority rules
▸ different consensus rules may lead to a fork (split)
of the blockchain
CONSENSUS AND SECURITY CONSIDERATIONS
ATTACK VECTORS
▸ 51% attack
▸ prevent transactions of gaining confirmations
▸ reverse transactions
▸ double spends
▸ nothing at stake (PoS)
DECENTRALISED APPLICATIONS (ÐAPPS)
ETHEREUM
▸ White-paper 2013 by Vitalik Buterin
▸ Yellow-paper 2014 by Garvin Wood
▸ Swiss based non-profit Ethereum foundation
▸ Crowd-funded
▸ Roadmap
▸ July 2015 “Ethereum Frontier”
▸ March 2016 “Ethereum Homestead”
▸ “Metropolis” & “Serenity”
Source: www.ethereum.org
DECENTRALISED APPLICATIONS (ÐAPPS)
ETHEREUM VIRTUAL MACHINE (EVM)
▸ “the world computer” (Gavin Wood)
▸ is a global sigleton
▸ is always running
▸ cannot be shut down, stopped or censored
▸ turing complete scripting language (Solidity)
▸ guaranteed atomicity, synchrony, provenance
▸ completely isolated runtime environment for smart
contracts
Source: www.ethereum.org
DECENTRALISED APPLICATIONS (ÐAPPS)
SMART CONTRACTS
▸ address is derived from the creator address
▸ need “gas” to run transactions
▸ can call other contracts
▸ dynamically load code from a different address (“delegatecall”)
▸ send Ether to non-contract accounts
▸ create other contracts
Source: www.ethereum.org
DECENTRALISED APPLICATIONS (ÐAPPS)
DEVELOPMENT
▸ Mix IDE (discontinued in favor for remix)
▸ Alethzero (discontinued in favor for remix)
▸ remix (early alpha)
▸ Visual Studio Code
▸ Ethereum JavaScript console

More Related Content

What's hot

Introduction to Ethereum
Introduction to EthereumIntroduction to Ethereum
Introduction to EthereumTerek Judi
 
Information security in private blockchains
Information security in private blockchainsInformation security in private blockchains
Information security in private blockchainsCoin Sciences Ltd
 
CBGTBT - Part 3 - Transactions 101
CBGTBT - Part 3 - Transactions 101CBGTBT - Part 3 - Transactions 101
CBGTBT - Part 3 - Transactions 101Blockstrap.com
 
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad SarangNinad Sarang
 
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)Nicholas Lin
 
Build your own block chain
Build your own block chainBuild your own block chain
Build your own block chainBohdan Szymanik
 
Metadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN ExplosionMetadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN ExplosionCoin Sciences Ltd
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchainseancarmody
 
Girl Develop It - Intro To Blockchain And Cryptocurrencies
Girl Develop It - Intro To Blockchain And CryptocurrenciesGirl Develop It - Intro To Blockchain And Cryptocurrencies
Girl Develop It - Intro To Blockchain And Cryptocurrenciesmagnachef
 
Web3 Full Stack Development
Web3 Full Stack DevelopmentWeb3 Full Stack Development
Web3 Full Stack DevelopmentGene Leybzon
 
Abhishek jaiswal blockchain
Abhishek jaiswal blockchainAbhishek jaiswal blockchain
Abhishek jaiswal blockchainAbhishek Jaiswal
 
The Hive Think Tank: Sidechains by Adam Back, President of Blockstream
The Hive Think Tank: Sidechains by Adam Back, President of BlockstreamThe Hive Think Tank: Sidechains by Adam Back, President of Blockstream
The Hive Think Tank: Sidechains by Adam Back, President of BlockstreamThe Hive
 
Outsmarting Smart Contracts - an essential walkthrough a blockchain security ...
Outsmarting Smart Contracts - an essential walkthrough a blockchain security ...Outsmarting Smart Contracts - an essential walkthrough a blockchain security ...
Outsmarting Smart Contracts - an essential walkthrough a blockchain security ...SecuRing
 
Sidechain talk
Sidechain talkSidechain talk
Sidechain talkjojva
 
A quick introduction to Consensus Models
A quick introduction to Consensus ModelsA quick introduction to Consensus Models
A quick introduction to Consensus ModelsOded Noam
 
SAA Blockchain Presentation. 10 Startups using the Blockchain
SAA Blockchain Presentation.  10 Startups using the BlockchainSAA Blockchain Presentation.  10 Startups using the Blockchain
SAA Blockchain Presentation. 10 Startups using the BlockchainTom McGovern
 

What's hot (20)

Introduction to Ethereum
Introduction to EthereumIntroduction to Ethereum
Introduction to Ethereum
 
Pi network
Pi networkPi network
Pi network
 
Blockchains 101
Blockchains 101Blockchains 101
Blockchains 101
 
Information security in private blockchains
Information security in private blockchainsInformation security in private blockchains
Information security in private blockchains
 
CBGTBT - Part 3 - Transactions 101
CBGTBT - Part 3 - Transactions 101CBGTBT - Part 3 - Transactions 101
CBGTBT - Part 3 - Transactions 101
 
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
 
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
 
Build your own block chain
Build your own block chainBuild your own block chain
Build your own block chain
 
Metadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN ExplosionMetadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN Explosion
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
 
Girl Develop It - Intro To Blockchain And Cryptocurrencies
Girl Develop It - Intro To Blockchain And CryptocurrenciesGirl Develop It - Intro To Blockchain And Cryptocurrencies
Girl Develop It - Intro To Blockchain And Cryptocurrencies
 
Sidechains Presentation
Sidechains PresentationSidechains Presentation
Sidechains Presentation
 
Web3 Full Stack Development
Web3 Full Stack DevelopmentWeb3 Full Stack Development
Web3 Full Stack Development
 
Abhishek jaiswal blockchain
Abhishek jaiswal blockchainAbhishek jaiswal blockchain
Abhishek jaiswal blockchain
 
The Hive Think Tank: Sidechains by Adam Back, President of Blockstream
The Hive Think Tank: Sidechains by Adam Back, President of BlockstreamThe Hive Think Tank: Sidechains by Adam Back, President of Blockstream
The Hive Think Tank: Sidechains by Adam Back, President of Blockstream
 
Outsmarting Smart Contracts - an essential walkthrough a blockchain security ...
Outsmarting Smart Contracts - an essential walkthrough a blockchain security ...Outsmarting Smart Contracts - an essential walkthrough a blockchain security ...
Outsmarting Smart Contracts - an essential walkthrough a blockchain security ...
 
Sidechain talk
Sidechain talkSidechain talk
Sidechain talk
 
Intro into blockchain
Intro into blockchainIntro into blockchain
Intro into blockchain
 
A quick introduction to Consensus Models
A quick introduction to Consensus ModelsA quick introduction to Consensus Models
A quick introduction to Consensus Models
 
SAA Blockchain Presentation. 10 Startups using the Blockchain
SAA Blockchain Presentation.  10 Startups using the BlockchainSAA Blockchain Presentation.  10 Startups using the Blockchain
SAA Blockchain Presentation. 10 Startups using the Blockchain
 

Similar to solutions.hamburg | blockchain basics

solutions.hamburg | web3 // smart contracts // ethereum
solutions.hamburg | web3 // smart contracts // ethereumsolutions.hamburg | web3 // smart contracts // ethereum
solutions.hamburg | web3 // smart contracts // ethereumMaximilian Reichel
 
Intro to blockchain - Dapper Dev Bootcamp
Intro to blockchain  - Dapper Dev BootcampIntro to blockchain  - Dapper Dev Bootcamp
Intro to blockchain - Dapper Dev Bootcampshotdsherrif
 
2018 SAI workshop blockchain Kristof Verslype
2018 SAI  workshop blockchain Kristof Verslype2018 SAI  workshop blockchain Kristof Verslype
2018 SAI workshop blockchain Kristof VerslypeSmals
 
Blockchain: The New Technology and Its Applications for Libraries
Blockchain: The New Technology and Its Applications for LibrariesBlockchain: The New Technology and Its Applications for Libraries
Blockchain: The New Technology and Its Applications for LibrariesBohyun Kim
 
mi8 - Blockchain, the backbone of Digital Supply-Chains
mi8 - Blockchain, the backbone of Digital Supply-Chainsmi8 - Blockchain, the backbone of Digital Supply-Chains
mi8 - Blockchain, the backbone of Digital Supply-ChainsMobileInception
 
An Introduction to Blockchain
An Introduction to BlockchainAn Introduction to Blockchain
An Introduction to BlockchainArun Sharma
 
Blockchain for Land Records and Real Estate
Blockchain for Land Records and Real EstateBlockchain for Land Records and Real Estate
Blockchain for Land Records and Real EstateJohn Mirkovic
 
Bitcoin and blockchain engineering
Bitcoin and blockchain engineeringBitcoin and blockchain engineering
Bitcoin and blockchain engineeringGregory Bataille
 
Blockchain: use cases for the future
Blockchain: use cases for the futureBlockchain: use cases for the future
Blockchain: use cases for the futureBruno Lowagie
 
Blockchain intro: The end of the middleman
Blockchain intro: The end of the middlemanBlockchain intro: The end of the middleman
Blockchain intro: The end of the middlemanAndries De Vos
 
Unchain Blockchain by Eva Rez
Unchain Blockchain by Eva RezUnchain Blockchain by Eva Rez
Unchain Blockchain by Eva Rezrezeva
 
Unchain Blockchain by Eva Rez
Unchain Blockchain by Eva RezUnchain Blockchain by Eva Rez
Unchain Blockchain by Eva Rezrezeva
 
Blockchain - a formal introduction
Blockchain - a formal introductionBlockchain - a formal introduction
Blockchain - a formal introductionSander Demeester
 
Introduction to Blockchain Web3 Session
Introduction to Blockchain Web3 SessionIntroduction to Blockchain Web3 Session
Introduction to Blockchain Web3 SessionDSCIITPatna
 
Connecting The Block Cointelligence Academy by Dr Vince Ming
Connecting The Block   Cointelligence Academy by Dr Vince MingConnecting The Block   Cointelligence Academy by Dr Vince Ming
Connecting The Block Cointelligence Academy by Dr Vince MingCointelligence
 
BlockChain for the Banker
BlockChain for the BankerBlockChain for the Banker
BlockChain for the BankerBohdan Szymanik
 
Ethereum: From there to here, and ownards yonder
Ethereum: From there to here, and ownards yonderEthereum: From there to here, and ownards yonder
Ethereum: From there to here, and ownards yondergavofyork
 

Similar to solutions.hamburg | blockchain basics (20)

solutions.hamburg | web3 // smart contracts // ethereum
solutions.hamburg | web3 // smart contracts // ethereumsolutions.hamburg | web3 // smart contracts // ethereum
solutions.hamburg | web3 // smart contracts // ethereum
 
Intro to blockchain - Dapper Dev Bootcamp
Intro to blockchain  - Dapper Dev BootcampIntro to blockchain  - Dapper Dev Bootcamp
Intro to blockchain - Dapper Dev Bootcamp
 
2018 SAI workshop blockchain Kristof Verslype
2018 SAI  workshop blockchain Kristof Verslype2018 SAI  workshop blockchain Kristof Verslype
2018 SAI workshop blockchain Kristof Verslype
 
Blockchain: The New Technology and Its Applications for Libraries
Blockchain: The New Technology and Its Applications for LibrariesBlockchain: The New Technology and Its Applications for Libraries
Blockchain: The New Technology and Its Applications for Libraries
 
mi8 - Blockchain, the backbone of Digital Supply-Chains
mi8 - Blockchain, the backbone of Digital Supply-Chainsmi8 - Blockchain, the backbone of Digital Supply-Chains
mi8 - Blockchain, the backbone of Digital Supply-Chains
 
An Introduction to Blockchain
An Introduction to BlockchainAn Introduction to Blockchain
An Introduction to Blockchain
 
Blockchain for Land Records and Real Estate
Blockchain for Land Records and Real EstateBlockchain for Land Records and Real Estate
Blockchain for Land Records and Real Estate
 
Bitcoin and blockchain engineering
Bitcoin and blockchain engineeringBitcoin and blockchain engineering
Bitcoin and blockchain engineering
 
Euklid (1)
Euklid (1)Euklid (1)
Euklid (1)
 
Blockchain: use cases for the future
Blockchain: use cases for the futureBlockchain: use cases for the future
Blockchain: use cases for the future
 
Blockchain intro: The end of the middleman
Blockchain intro: The end of the middlemanBlockchain intro: The end of the middleman
Blockchain intro: The end of the middleman
 
Unchain Blockchain by Eva Rez
Unchain Blockchain by Eva RezUnchain Blockchain by Eva Rez
Unchain Blockchain by Eva Rez
 
Unchain Blockchain by Eva Rez
Unchain Blockchain by Eva RezUnchain Blockchain by Eva Rez
Unchain Blockchain by Eva Rez
 
Blockchain - a formal introduction
Blockchain - a formal introductionBlockchain - a formal introduction
Blockchain - a formal introduction
 
1. ibm blockchain explained
1. ibm blockchain explained1. ibm blockchain explained
1. ibm blockchain explained
 
Blockchains in agriculture
Blockchains in agricultureBlockchains in agriculture
Blockchains in agriculture
 
Introduction to Blockchain Web3 Session
Introduction to Blockchain Web3 SessionIntroduction to Blockchain Web3 Session
Introduction to Blockchain Web3 Session
 
Connecting The Block Cointelligence Academy by Dr Vince Ming
Connecting The Block   Cointelligence Academy by Dr Vince MingConnecting The Block   Cointelligence Academy by Dr Vince Ming
Connecting The Block Cointelligence Academy by Dr Vince Ming
 
BlockChain for the Banker
BlockChain for the BankerBlockChain for the Banker
BlockChain for the Banker
 
Ethereum: From there to here, and ownards yonder
Ethereum: From there to here, and ownards yonderEthereum: From there to here, and ownards yonder
Ethereum: From there to here, and ownards yonder
 

Recently uploaded

办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?Watsoo Telematics
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 

Recently uploaded (20)

办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 

solutions.hamburg | blockchain basics

  • 1. BLOCKCHAINS TO THE RESCUE DECENTRALISED WHATEVER
  • 2. DECENTRALISED WHATEVER - BLOCKCHAINS TO THE RESCUE ABOUT ME ▸ Maximilian Reichel ▸ Silpion IT-Solutions GmbH ▸ Web-Engineering
  • 3. DECENTRALISED WHATEVER - BLOCKCHAINS TO THE RESCUE TOC ▸ blockchain basics ▸ block generation (proof-of-work, proof-of-stake) ▸ consensus and security considerations ▸ decentralised applications (Ðapps) ▸ some use cases
  • 4. BLOCKCHAIN BASICS IT’S JUST A DATABASE ▸ distributed ▸ immutable ▸ permanent ▸ verifiable ▸ auditable
  • 5. BLOCKCHAIN BASICS CENTRALISED Source: On Distributed Communications Networks, Paul Baran, 1962
  • 6. BLOCKCHAIN BASICS DECENTRALISED Source: On Distributed Communications Networks, Paul Baran, 1962
  • 7. BLOCKCHAIN BASICS DISTRIBUTED Source: On Distributed Communications Networks, Paul Baran, 1962
  • 8. BLOCKCHAIN BASICS PLAIN OLD DATABASE TxId TxType Sender Recipient Payload #1000 Asset-Transfer Account A Account B 10 #1001 Asset-Transfer Account B Account C 5 #1002 Asset-Transfer Account A Account C 5 #1003 Asset-Transfer Account C Account A 10
  • 9. BLOCKCHAIN BASICS BLOCK TxId TxType Sender Recipient Payload <HASH> Asset-Transfer Account A Account B 10 <HASH> Asset-Transfer Account B Account C 5 <HASH> Asset-Transfer Account A Account C 5 <HASH> Asset-Transfer Account C Account A 10 Merkle Root Previous Block <HASH> <HASH OF PREVIOUS BLOCK HEADER> TransactionsHeader
  • 10. BLOCKCHAIN BASICS BLOCKCHAIN TxId TxType Sender Recipient Payload … … … … … … … … … … … … … … … … … … … … Previous Block Merkle Root <HASH> <HASH> TxId TxType Sender Recipient Payload … … … … … … … … … … Previous Block Merkle Root <HASH> <HASH> TxId TxType Sender Recipient Payload … … … … … … … … … … … … … … … Previous Block Merkle Root <HASH> <HASH>
  • 11. BLOCKCHAIN BASICS BASIC SECURITY CONCEPTS ▸ asymmetric key cryptography (RSA, Curve25519, …) ▸ cryptographic hash functions (SHA, SCRYPT, …) ▸ public-/private key ▸ verify/sign transactions
  • 12. BLOCKCHAIN BASICS SECURE TRANSACTIONS TxId TxType Sender Recipient Payload Sender Signature <HASH> Asset-Transfer <PUBLIC KEY> <PUBLIC KEY> 10 <SIGNATURE> <HASH> Private Msg <PUBLIC KEY> <PUBLIC KEY> <CIPHERTEXT> <SIGNATURE> <HASH> Public Msg <PUBLIC KEY> <PUBLIC KEY> Hey Dude! <SIGNATURE> <HASH> Arbitrary Data <PUBLIC KEY> <PUBLIC KEY> <BLOB> <SIGNATURE>
  • 13. BLOCK GENERATION TRANSACTION BROADCAST TxId TxType Sender Recipient Payload Sender Signature #1 Asset-Transfer <PUBLIC KEY> <PUBLIC KEY> 10 <SIGNATURE> #2 Private Msg <PUBLIC KEY> <PUBLIC KEY> <CIPHERTEXT> <SIGNATURE> #3 Public Msg <PUBLIC KEY> <PUBLIC KEY> Hey Dude! <SIGNATURE> Tx #1 Tx #3 Tx #2 unconfirmed transactions
  • 15. BLOCK GENERATION PROOF OF WORK ▸ based on the computing power (hashrate) ▸ may lead to centralisation (mining pools, asic manufactures) ▸ waste of energy
  • 16. BLOCK GENERATION BLOCK TEMPLATE TxId TxType TxFee Sender Recipient Payload <HASH> Asset-Transfer 3 Account A Account B 10 <HASH> Asset-Transfer 1 Account B Account C 5 <HASH> Asset-Transfer 1 Account A Account C 5 <HASH> Asset-Transfer 5 Account C Account A 10 Merkle Root Previous Block cc0d7e487c44bb1f28e83a15b0f1c4507499 001f2844e83a15b0f1c4507499cc0d7e487c TransactionsHeader Nonce ????
  • 17. BLOCK GENERATION HASHCASH Merkle Root Previous Block cc0d7e487c44bb1f28e83a15b0f1c4507499 001f2844e83a15b0f1c4507499cc0d7e487c Header Nonce ???? Block Hash <HASH>(HEADER) Difficulty 32 (0000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) #1 (nonce=100) <HASH>(HEADER) = 87c44bb1f28e83a15b0f1c4507499cc0d7e4 #2 (nonce=101) <HASH>(HEADER) = 3a15b0f1c4507499cc0d7e487c44bb1f28e8 #3 (nonce=102) <HASH>(HEADER) = 00c0d7e487c44bb1f28e83a15b0f1c450749 #4 (nonce=103) <HASH>(HEADER) = 0000b1f28e83d7e487c4f1c4507494ba15b0
  • 18. BLOCK GENERATION PROOF OF STAKE ▸ based on the amount of stake (tokens) ▸ still unsolved issues (nothing at stake) ▸ almost anyone (with low computing power) can participate
  • 19. BLOCK GENERATION NEW BLOCK BROADCAST ▸ new block will be broadcasted ▸ the “best” block/chain (highest difficulty) wins ▸ generator gets rewarded (eg. transaction fees and/or new tokens)
  • 20. CONSENSUS AND SECURITY CONSIDERATIONS CONSENSUS ▸ code is law ▸ build-in (peers, smart contracts, …) ▸ no central authority (admin, government, …) ▸ majority rules ▸ different consensus rules may lead to a fork (split) of the blockchain
  • 21. CONSENSUS AND SECURITY CONSIDERATIONS ATTACK VECTORS ▸ 51% attack ▸ prevent transactions of gaining confirmations ▸ reverse transactions ▸ double spends ▸ nothing at stake (PoS)
  • 22. DECENTRALISED APPLICATIONS (ÐAPPS) ETHEREUM ▸ White-paper 2013 by Vitalik Buterin ▸ Yellow-paper 2014 by Garvin Wood ▸ Swiss based non-profit Ethereum foundation ▸ Crowd-funded ▸ Roadmap ▸ July 2015 “Ethereum Frontier” ▸ March 2016 “Ethereum Homestead” ▸ “Metropolis” & “Serenity” Source: www.ethereum.org
  • 23. DECENTRALISED APPLICATIONS (ÐAPPS) ETHEREUM VIRTUAL MACHINE (EVM) ▸ “the world computer” (Gavin Wood) ▸ is a global sigleton ▸ is always running ▸ cannot be shut down, stopped or censored ▸ turing complete scripting language (Solidity) ▸ guaranteed atomicity, synchrony, provenance ▸ completely isolated runtime environment for smart contracts Source: www.ethereum.org
  • 24. DECENTRALISED APPLICATIONS (ÐAPPS) SMART CONTRACTS ▸ address is derived from the creator address ▸ need “gas” to run transactions ▸ can call other contracts ▸ dynamically load code from a different address (“delegatecall”) ▸ send Ether to non-contract accounts ▸ create other contracts Source: www.ethereum.org
  • 25. DECENTRALISED APPLICATIONS (ÐAPPS) DEVELOPMENT ▸ Mix IDE (discontinued in favor for remix) ▸ Alethzero (discontinued in favor for remix) ▸ remix (early alpha) ▸ Visual Studio Code ▸ Ethereum JavaScript console