SlideShare une entreprise Scribd logo
1  sur  26
Télécharger pour lire hors ligne
Introduction to Blockchain
with an Ethereum Hands-on
June 2016
01
by Johann Romefort
About Johann
• Tech Evangelist @Stylight
• 15+ years in tech
• In Germany for 2 years
• 7 years in San Francisco
doing startups
• Organizer of many meetups
2
Agenda - Introduction
3
• What is blockchain, what is Ethereum, and
what about Bitcoin?
• Basic concepts of Ethereum:
• Ether
• Wallet
• Transactions, Blocks, Smart Contracts, ĐApps and The Ethereum
Virtual Machine.
Agenda - Hands-on
4
• Local, Test and Production blockchains. Let's browse them,
and find transactions.
• How to get the first Ether in your wallet.
• Get a local Ethereum node running and make your first
transaction.
• Write, compile and deploy a Smart Contract with Truffle.
• Invoke your Smart Contract and see your transactions.
• - Where is this going? A quick intro to the DAO and
potential future use cases of the technology.
What do you need?
5
• Terminal
• Code Editor
What is blockchain?
6
• Blockchain is the technology behind bitcoin .
• Bitcoin was created in 2008 by Satoshi
Nakamoto
• Ethereum is a blockchain 2.0 - it retains the
same principles but add some new ones (like
Smart Contracts)
Blockchain principles
7
The Blockchain is a distributed public ledger. An ordered and
timestamped record of transactions. This system is used to protect
against double spending and modification of previous transaction
records.
What is a “Hash”?
8
A hash function is a type of mathematical function which turns
data into a fingerprint of that data called a hash:
SHA-256 of “Hello from Microsoft”:
a11a19a7a180e0d0f5173fd89a77ff67fde082f59f75d157ca1aa3395411e30b
SHA-256 of “Hello from Microsoft!”:
d9b8515817907bdebfa29d4b7591f7336035ecf3bed3bedda93e2a9a10a0f896
Properties of good Hashing functions
9
• Impossible to deduce the data from the
hash
• Slight change to data modify the hash in a
very unpredictable way
What is a “Block”?
10
• Bundles transactions
• Containers previous block hash
• Blocks are linked through their hashes
• You can’t change the data in one block in the
chain without changing the subsequent chain
• Unless you mine it all over again
A few words about Mining
11
• Mining is computationally expensive (on purpose)
• Mining a block means guessing a hash that matches particular
criteria
• Miners can’t change the transaction data, but only something
called a “nonce”
• finding the right nonce that makes the hash of the block match
a particular criteria is called the “proof of work”
What can I do with a distributed
immutable ledger?
12
• Cryptocurrencies
• Property titles
• Notarised acts
• Digital certificates
• And more
A gentle introduction to
Ethereum
What’s Ethereum?
14
• Initially conceptualised in 2013 by Vitalik Buterin
• Development was crowdfunded and launched in July 2015
• “A Next-Generation Cryptocurrency and Decentralized
Application Platform”
• Does not rely on the bitcoin blockchain
• Ether (ETH) is the “fuel” to operate the platform.
What’s the Ethereum
Wallet?
15
• Entry point in the Ethereum platform
• Holds your accounts
• Let you send/receive ETH
• Let you create / invoke Smart Contracts
What’s a Transaction?
16
• In Ethereum’s world it’s an operation that writes data on the
blockchain
• You have to pay a fee for each transactions you make
• the simplest transaction is sending ETH from one account to
another
• More complicated transaction involve Smart Contracts
What’s a Smart Contract?
17
• It’s code running on the Ethereum Virtual Machine
• A Smart Contract can hold Ether, write data to the
blockchain and be invoked from another Smart
Contract.
• It’s written using one of the supported 

language, most likely Solidity
Hands-on!
June 2016
01
Browsing the blockchain
19
• A few web interface available
• Ether.camp is great : https://live.ether.camp/
• Different chains for different purposes:
• Homestead: “production”
• Morden: Staging
• Local testrpc : https://github.com/ethereumjs/testrpc
Writing a Smart Contract
20
• Language: Solidity (JS-like)
• Supports inheritance
• Compiled with Solc
• Can use tooling to compile and deploy
Installing Geth
21
• https://github.com/ethereum/go-ethereum/releases
• Launching Geth:
$ geth
--rpc 
--rpcaddr 0.0.0.0
--rpccorsdomain "*"
--rpcapi "eth,web3" 
--unlock 0 
console
Truffle - A development framework for Ethereum
22
• https://github.com/ConsenSys/truffle
• Built-in contract compilation, linking, deployment
• Interactive console for managing deployed contracts
Play around with Truffle
23
• List of commands
• Initialise a project
• Compile a contract
• Deploy a contract
• Make a call
• Make a transaction
• Build a front-end
A few words on the DAO
and recent events…
Microsoft & Blockchain?
25
• Project Bletchey: Blockchain As A Service (BaaS)
• https://azure.microsoft.com/en-us/blog/bletchley-
blockchain/
Questions?

Contenu connexe

Tendances

Tendances (20)

Blockchain - Introduction and Authoring Smart Contracts
Blockchain - Introduction and Authoring Smart ContractsBlockchain - Introduction and Authoring Smart Contracts
Blockchain - Introduction and Authoring Smart Contracts
 
MultiChain – Private multicurrency blockchain platform
MultiChain – Private multicurrency blockchain platformMultiChain – Private multicurrency blockchain platform
MultiChain – Private multicurrency blockchain platform
 
Ethereum Blockchain with Smart contract and ERC20
Ethereum Blockchain with Smart contract and ERC20Ethereum Blockchain with Smart contract and ERC20
Ethereum Blockchain with Smart contract and ERC20
 
What is Block chain
What is Block chain What is Block chain
What is Block chain
 
Information security in private blockchains
Information security in private blockchainsInformation security in private blockchains
Information security in private blockchains
 
Litecoin Crypto Currency Bootcamp
Litecoin Crypto Currency BootcampLitecoin Crypto Currency Bootcamp
Litecoin Crypto Currency Bootcamp
 
From Cryptoequity to Cryptocommons
From Cryptoequity to CryptocommonsFrom Cryptoequity to Cryptocommons
From Cryptoequity to Cryptocommons
 
An introduction to block chain technology
An introduction to block chain technologyAn introduction to block chain technology
An introduction to block chain technology
 
Session for InfoSecGirls - Block chain for information security
Session for InfoSecGirls - Block chain for information securitySession for InfoSecGirls - Block chain for information security
Session for InfoSecGirls - Block chain for information security
 
以比特幣為例的區塊鏈技術介紹 ( 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)
 
Blockchain
BlockchainBlockchain
Blockchain
 
Intro into blockchain
Intro into blockchainIntro into blockchain
Intro into blockchain
 
Blockchain bootcamp for boards
Blockchain bootcamp for boardsBlockchain bootcamp for boards
Blockchain bootcamp for boards
 
2018 Lunch & Learn Blockchain Overview
2018 Lunch & Learn Blockchain Overview2018 Lunch & Learn Blockchain Overview
2018 Lunch & Learn Blockchain Overview
 
Blockchain 101
Blockchain 101Blockchain 101
Blockchain 101
 
Block chain
Block chainBlock chain
Block chain
 
gething started - ethereum & using the geth golang client
gething started - ethereum & using the geth golang clientgething started - ethereum & using the geth golang client
gething started - ethereum & using the geth golang client
 
FREE Crypto Guide to EARN passive income online, DONT wait Start Now!
FREE Crypto Guide to EARN passive income online, DONT wait Start Now!FREE Crypto Guide to EARN passive income online, DONT wait Start Now!
FREE Crypto Guide to EARN passive income online, DONT wait Start Now!
 
Blockchain 101
Blockchain 101Blockchain 101
Blockchain 101
 
How do blockchain and internet of things match?
How do blockchain and internet of things match?How do blockchain and internet of things match?
How do blockchain and internet of things match?
 

Similaire à Introduction to Blockchain with an Ethereuem Hands-on

Similaire à Introduction to Blockchain with an Ethereuem Hands-on (20)

A Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval CaprazA Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval Capraz
 
Bitcoin and the future of cryptocurrency
Bitcoin and the future of cryptocurrencyBitcoin and the future of cryptocurrency
Bitcoin and the future of cryptocurrency
 
Blockchain and Cryptocurrencies
Blockchain and CryptocurrenciesBlockchain and Cryptocurrencies
Blockchain and Cryptocurrencies
 
How to Build Your Own Blockchain
How to Build Your Own BlockchainHow to Build Your Own Blockchain
How to Build Your Own Blockchain
 
Bitcoin and Ransomware Analysis
Bitcoin and Ransomware AnalysisBitcoin and Ransomware Analysis
Bitcoin and Ransomware Analysis
 
Bitcoin and Ransomware Analysis
Bitcoin and Ransomware AnalysisBitcoin and Ransomware Analysis
Bitcoin and Ransomware Analysis
 
Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014
 
Ethereum in a nutshell
Ethereum in a nutshellEthereum in a nutshell
Ethereum in a nutshell
 
Bitcoin story of programable currency
Bitcoin story of programable currencyBitcoin story of programable currency
Bitcoin story of programable currency
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchains
 
Blockchain
BlockchainBlockchain
Blockchain
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
20221110 MetaCoin
20221110 MetaCoin20221110 MetaCoin
20221110 MetaCoin
 
Upfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deckUpfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deck
 
How Does Blockchain Work?
How Does Blockchain Work?How Does Blockchain Work?
How Does Blockchain Work?
 
Blockchain Technology Powerpoint
Blockchain Technology PowerpointBlockchain Technology Powerpoint
Blockchain Technology Powerpoint
 
BlockchainConf.tech - Build a private blockchain workshop
BlockchainConf.tech - Build a private blockchain workshopBlockchainConf.tech - Build a private blockchain workshop
BlockchainConf.tech - Build a private blockchain workshop
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
 
Cryptocurrencies and Blockchain - An opportunity for Startups and Companies
Cryptocurrencies and Blockchain - An opportunity for Startups and CompaniesCryptocurrencies and Blockchain - An opportunity for Startups and Companies
Cryptocurrencies and Blockchain - An opportunity for Startups and Companies
 
Indjic fintech module 6
Indjic fintech module 6Indjic fintech module 6
Indjic fintech module 6
 

Plus de Johann Romefort (8)

IoT on AWS with NodeMCU for less than 5 Euros
IoT on AWS with NodeMCU for less than 5 EurosIoT on AWS with NodeMCU for less than 5 Euros
IoT on AWS with NodeMCU for less than 5 Euros
 
Hack the hack vivatech
Hack the hack vivatechHack the hack vivatech
Hack the hack vivatech
 
Supply Chain Management on the blockchain with Iot, Azure, BigchainDB, VueJS
Supply Chain Management on the blockchain with Iot, Azure, BigchainDB, VueJSSupply Chain Management on the blockchain with Iot, Azure, BigchainDB, VueJS
Supply Chain Management on the blockchain with Iot, Azure, BigchainDB, VueJS
 
CoreOS introduction - by johann romefort
CoreOS introduction - by johann romefortCoreOS introduction - by johann romefort
CoreOS introduction - by johann romefort
 
Big Data on AWS
Big Data on AWSBig Data on AWS
Big Data on AWS
 
Le passage de clientele a communaute
Le passage de clientele a communauteLe passage de clientele a communaute
Le passage de clientele a communaute
 
Webcom - From the Social Web to the Web of Data
Webcom - From the Social Web to the Web of DataWebcom - From the Social Web to the Web of Data
Webcom - From the Social Web to the Web of Data
 
Seesmic - Using Free to Create Value
Seesmic - Using Free to Create ValueSeesmic - Using Free to Create Value
Seesmic - Using Free to Create Value
 

Dernier

Dernier (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

Introduction to Blockchain with an Ethereuem Hands-on

  • 1. Introduction to Blockchain with an Ethereum Hands-on June 2016 01 by Johann Romefort
  • 2. About Johann • Tech Evangelist @Stylight • 15+ years in tech • In Germany for 2 years • 7 years in San Francisco doing startups • Organizer of many meetups 2
  • 3. Agenda - Introduction 3 • What is blockchain, what is Ethereum, and what about Bitcoin? • Basic concepts of Ethereum: • Ether • Wallet • Transactions, Blocks, Smart Contracts, ĐApps and The Ethereum Virtual Machine.
  • 4. Agenda - Hands-on 4 • Local, Test and Production blockchains. Let's browse them, and find transactions. • How to get the first Ether in your wallet. • Get a local Ethereum node running and make your first transaction. • Write, compile and deploy a Smart Contract with Truffle. • Invoke your Smart Contract and see your transactions. • - Where is this going? A quick intro to the DAO and potential future use cases of the technology.
  • 5. What do you need? 5 • Terminal • Code Editor
  • 6. What is blockchain? 6 • Blockchain is the technology behind bitcoin . • Bitcoin was created in 2008 by Satoshi Nakamoto • Ethereum is a blockchain 2.0 - it retains the same principles but add some new ones (like Smart Contracts)
  • 7. Blockchain principles 7 The Blockchain is a distributed public ledger. An ordered and timestamped record of transactions. This system is used to protect against double spending and modification of previous transaction records.
  • 8. What is a “Hash”? 8 A hash function is a type of mathematical function which turns data into a fingerprint of that data called a hash: SHA-256 of “Hello from Microsoft”: a11a19a7a180e0d0f5173fd89a77ff67fde082f59f75d157ca1aa3395411e30b SHA-256 of “Hello from Microsoft!”: d9b8515817907bdebfa29d4b7591f7336035ecf3bed3bedda93e2a9a10a0f896
  • 9. Properties of good Hashing functions 9 • Impossible to deduce the data from the hash • Slight change to data modify the hash in a very unpredictable way
  • 10. What is a “Block”? 10 • Bundles transactions • Containers previous block hash • Blocks are linked through their hashes • You can’t change the data in one block in the chain without changing the subsequent chain • Unless you mine it all over again
  • 11. A few words about Mining 11 • Mining is computationally expensive (on purpose) • Mining a block means guessing a hash that matches particular criteria • Miners can’t change the transaction data, but only something called a “nonce” • finding the right nonce that makes the hash of the block match a particular criteria is called the “proof of work”
  • 12. What can I do with a distributed immutable ledger? 12 • Cryptocurrencies • Property titles • Notarised acts • Digital certificates • And more
  • 13. A gentle introduction to Ethereum
  • 14. What’s Ethereum? 14 • Initially conceptualised in 2013 by Vitalik Buterin • Development was crowdfunded and launched in July 2015 • “A Next-Generation Cryptocurrency and Decentralized Application Platform” • Does not rely on the bitcoin blockchain • Ether (ETH) is the “fuel” to operate the platform.
  • 15. What’s the Ethereum Wallet? 15 • Entry point in the Ethereum platform • Holds your accounts • Let you send/receive ETH • Let you create / invoke Smart Contracts
  • 16. What’s a Transaction? 16 • In Ethereum’s world it’s an operation that writes data on the blockchain • You have to pay a fee for each transactions you make • the simplest transaction is sending ETH from one account to another • More complicated transaction involve Smart Contracts
  • 17. What’s a Smart Contract? 17 • It’s code running on the Ethereum Virtual Machine • A Smart Contract can hold Ether, write data to the blockchain and be invoked from another Smart Contract. • It’s written using one of the supported 
 language, most likely Solidity
  • 19. Browsing the blockchain 19 • A few web interface available • Ether.camp is great : https://live.ether.camp/ • Different chains for different purposes: • Homestead: “production” • Morden: Staging • Local testrpc : https://github.com/ethereumjs/testrpc
  • 20. Writing a Smart Contract 20 • Language: Solidity (JS-like) • Supports inheritance • Compiled with Solc • Can use tooling to compile and deploy
  • 21. Installing Geth 21 • https://github.com/ethereum/go-ethereum/releases • Launching Geth: $ geth --rpc --rpcaddr 0.0.0.0 --rpccorsdomain "*" --rpcapi "eth,web3" --unlock 0 console
  • 22. Truffle - A development framework for Ethereum 22 • https://github.com/ConsenSys/truffle • Built-in contract compilation, linking, deployment • Interactive console for managing deployed contracts
  • 23. Play around with Truffle 23 • List of commands • Initialise a project • Compile a contract • Deploy a contract • Make a call • Make a transaction • Build a front-end
  • 24. A few words on the DAO and recent events…
  • 25. Microsoft & Blockchain? 25 • Project Bletchey: Blockchain As A Service (BaaS) • https://azure.microsoft.com/en-us/blog/bletchley- blockchain/