SlideShare a Scribd company logo
A Gentle Introduction To
Blockchain With Ethereum
Johann Romefort, Tech Evangelist at Stylight
Twitter: @romefort
Blog: http://romefort.net
LinkedIn: http://linkedin.com/in/romefort
Email: johann.romefort@stylight.com
Agenda
● The Trust Industry
● Disruptive Nature of Blockchain
● Ethereum
● Demo!
What Is the Buzz about
Blockchain
A Gentle introduction to Blockchain with Ethereum
The History of
Trust and
Exchange of
Value
3500 Years Ago: The Signet Ring
Signet rings have been used since as far back as 3500 BC when the people of
Mesopotamia began using them as a method of authenticity. Each was unique to one
person.
Today: 3rd-Party
Trust Guarantors
● Banks
● Insurance
● Land registries
● Governments
● Credit companies
● Legal Agencies
Trust Comes at
a Price
● Operational Costs
● Risk
● Time
● Centralization
3rd-Party Trust Is
Fragile and Disrupted
● 2008 financial meltdown
● Government surveillance
● Elections
● Social media giants
● Data breaches
The Edelman Trust Barometer
Source: https://www.scribd.com/document/336621519/2017-Edelman-Trust-Barometer-Executive-Summary
The
Double-Spending
Problem
● You need to make sure the
ownership of the item of
value is moving from A to B
● In a digital world this is a
problem as assets can be
copied.
● This is why we needed 3rd
party which we can trust
and can ensure the validity
of the transaction
Until January 3rd,
2009
First blockchain implementation
deployed under the name:
“Bitcoin: A Peer-to-Peer
Electronic Cash System”
By Satoshi Nakamoto
The Distributed and
Transparent Nature of
Blockchain
What is
Blockchain?
● It’s an immutable distributed public ledger
● All transactions are timestamped and recorded
into blocks
● Distributed database with no single point of
failure
● Can’t be controlled by authorities such as
government due to its decentralized nature
● Solve the double-spending problem without
need for 3rd party of trust.
What is a Hash?
● Mathematical function which turns data into a
fingerprint of that data called
● You can’t deduce the data from the hash.
● The same data will have the same Hash.
● Slightly different data will have a totally different hash
What about Ethereum?
● It’s the second largest Blockchain implementation
● It can be a seen as a blockchain of second generation
● It contains new features such as Smart Contracts
What’s a Block?
● Bundle transactions
● Contains previous block hash
● All blocks are linked through their hashes
● You can’t change the data in one block
without breaking the chain
● Unless you mine it all over again
What’s a transaction?
● An operation that writes data on the blockchain
● Each transaction incurs a fee
● Simple transaction sending ETH from one address to
another
● More complicated transactions involve Smart Contracts
Smart Contracts
● Introduced in Ethereum Blockchain
● Run code directly on the blockchain
● Each smart contract has its own wallet
● Smart Contracts can invoke each others
● Written in Solidity
Enabling New
kinds of
Organizations
● DAO: Decentralized
Autonomous
Organization
● New type of
organization governed
by multiple smart
contracts
● Token holders can be
granted the right to
vote for example
Developing with Ethereum
Many chains available
● Main Net: This is the production network - Don’t use it
for development purposes!
● Rinkeby: https://www.rinkeby.io/#stats
○ PoA (Proof of Authority)
○ Immune to Spam attacks
○ Supported by geth only
○ Request ether through faucet: https://faucet.rinkeby.io/
● Ropsten: Best reproduce the current prod. Env.
○ Subject to Spam
○ Ether can be mined or requested
● Solo Network
A Gentle introduction to Blockchain with Ethereum
Truffle - development framework for Ethereum
Setting up our development
environment
npm install -g truffle
npm install -g ganache-cli
truffle init
ganache-cli -p 7545
Ganache run a
local EVM
(Ethereum Virtual
Machine)
Also:
● Create accounts
● their private keys
● Fund the accounts
with 100ETH
Our first Smart Contract:
HelloWorld.sol
Write the migration
Save this in migrations/2_deploy
Adjust truffle.js
You can also get rid of the truffle-config.js file // depending on your platform
Let’s compile and
deploy our contract
truffle compile
truffle migrate --network development
Compile will compile our Solidity code to bytecode (the code that the Ethereum Virtual
Machine (EVM) understands), in our case, Ganache emulates the EVM.
Migrate will deploy the code to the blockchain, in our case, the blockchain could be found in
the network “development” we set earlier in the “truffle-config.js” file.
Migration in progress...
Using Truffle console
Interact with the Contract
1/get an instance
2/get the contract
address
3/get the message var content
If you prefer a GUI
Questions?
A Gentle introduction to Blockchain with Ethereum

More Related Content

What's hot (20)

PPTX
From Cryptoequity to Cryptocommons
Raffaele Mauro
 
PPTX
Block chain
JEEVARATHINAM ANTONY
 
PDF
How do blockchain and internet of things match?
Bob Peters
 
PPTX
Blockchain Investing 2018
Christian Kameir
 
PDF
Blockchain powering the internet of value
Diego Alberto Tamayo
 
ODP
CBGTBT - Part 1 - Workshop introduction & primer
Blockstrap.com
 
PPTX
BLOCK CHAIN TECHNOLOGY
CANiharikaGarg
 
PDF
2018 Lunch & Learn Blockchain Overview
Paperchain
 
PPTX
Block chain
Saranya Krishnan
 
PDF
Blockchain: 12 predictions for a new world
removed_5ef8f4100b1d7e8bfe3d2dc557fe10d0
 
PDF
Block chains and crypto currencies - introduction
Initio
 
PDF
Understanding private blockchains
Coin Sciences Ltd
 
PPTX
Blockchain’s implications for the financial industry
Initio
 
PDF
Bitcoin presentation
Francis Pouliot
 
PPTX
What is Block-Chain Technology?
ThreadSol
 
PPTX
Week 3 - Cryptocurrencies
Roger Royse
 
PPTX
Introduction to blockchain 2018
Christian Kameir
 
PPTX
Bitcoin, Cryptocurrency, & Blockchain Presentation
MaxWheelock
 
PDF
Blockchain Technology And Cryptocurrency
Eno Bassey
 
PPTX
Basic introduction in blockchain, smart contracts, permissioned ledgers
Koen Vingerhoets
 
From Cryptoequity to Cryptocommons
Raffaele Mauro
 
How do blockchain and internet of things match?
Bob Peters
 
Blockchain Investing 2018
Christian Kameir
 
Blockchain powering the internet of value
Diego Alberto Tamayo
 
CBGTBT - Part 1 - Workshop introduction & primer
Blockstrap.com
 
BLOCK CHAIN TECHNOLOGY
CANiharikaGarg
 
2018 Lunch & Learn Blockchain Overview
Paperchain
 
Block chain
Saranya Krishnan
 
Blockchain: 12 predictions for a new world
removed_5ef8f4100b1d7e8bfe3d2dc557fe10d0
 
Block chains and crypto currencies - introduction
Initio
 
Understanding private blockchains
Coin Sciences Ltd
 
Blockchain’s implications for the financial industry
Initio
 
Bitcoin presentation
Francis Pouliot
 
What is Block-Chain Technology?
ThreadSol
 
Week 3 - Cryptocurrencies
Roger Royse
 
Introduction to blockchain 2018
Christian Kameir
 
Bitcoin, Cryptocurrency, & Blockchain Presentation
MaxWheelock
 
Blockchain Technology And Cryptocurrency
Eno Bassey
 
Basic introduction in blockchain, smart contracts, permissioned ledgers
Koen Vingerhoets
 

Similar to A Gentle introduction to Blockchain with Ethereum (20)

PDF
Blockchain and smart contracts, what they are and why you should really care ...
maeste
 
ODP
Stefano Maestri - Blockchain and smart contracts, what they are and why you s...
Codemotion
 
PDF
Part 4: Understanding the working of Smart Contracts
Jyoti Yadav
 
PPTX
Ethereum (Blockchain Network)
Qais Ammari
 
PDF
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Codemotion
 
PDF
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Codemotion
 
PDF
Introduction to Bitcoin, Blockchain, and Ethereum by Justin Wu
Justin Wu
 
PPTX
Overview-of-Blockchain-Technology-and-Ethereum.pptx
xhamm1994
 
PPTX
Blockchain for Developers
Shimi Bandiel
 
PPTX
Introduction_to_Blockchain_&_Ethereum.pptx
WijdenBenothmen1
 
PDF
Developing Blockchain Applications
malikmayank
 
PPTX
Understanding blockchain
Priyab Satoshi
 
PDF
Evaluation of Ethereum
Giuseppe Andreetti
 
PDF
Ethereum Blockchain and DApps - Workshop at Software University
Open Source University
 
PDF
Javascript toolset for Ethereum Smart Contract development
BugSense
 
PDF
The JavaScript toolset for development on Ethereum
GreeceJS
 
PPTX
Etherium Intro for techies
Joseph Holbrook, Chief Learning Officer (CLO)
 
PDF
Python, Blockchain, and Byte-Size Change
Portia Burton
 
PDF
BlockChain Basic Concepts
MuLearn
 
PPTX
The Blockchain and JavaScript
Portia Burton
 
Blockchain and smart contracts, what they are and why you should really care ...
maeste
 
Stefano Maestri - Blockchain and smart contracts, what they are and why you s...
Codemotion
 
Part 4: Understanding the working of Smart Contracts
Jyoti Yadav
 
Ethereum (Blockchain Network)
Qais Ammari
 
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Codemotion
 
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Codemotion
 
Introduction to Bitcoin, Blockchain, and Ethereum by Justin Wu
Justin Wu
 
Overview-of-Blockchain-Technology-and-Ethereum.pptx
xhamm1994
 
Blockchain for Developers
Shimi Bandiel
 
Introduction_to_Blockchain_&_Ethereum.pptx
WijdenBenothmen1
 
Developing Blockchain Applications
malikmayank
 
Understanding blockchain
Priyab Satoshi
 
Evaluation of Ethereum
Giuseppe Andreetti
 
Ethereum Blockchain and DApps - Workshop at Software University
Open Source University
 
Javascript toolset for Ethereum Smart Contract development
BugSense
 
The JavaScript toolset for development on Ethereum
GreeceJS
 
Python, Blockchain, and Byte-Size Change
Portia Burton
 
BlockChain Basic Concepts
MuLearn
 
The Blockchain and JavaScript
Portia Burton
 
Ad

More from Johann Romefort (8)

PDF
IoT on AWS with NodeMCU for less than 5 Euros
Johann Romefort
 
PPTX
Hack the hack vivatech
Johann Romefort
 
PDF
Supply Chain Management on the blockchain with Iot, Azure, BigchainDB, VueJS
Johann Romefort
 
PDF
CoreOS introduction - by johann romefort
Johann Romefort
 
PDF
Big Data on AWS
Johann Romefort
 
KEY
Le passage de clientele a communaute
Johann Romefort
 
PDF
Webcom - From the Social Web to the Web of Data
Johann Romefort
 
PDF
Seesmic - Using Free to Create Value
Johann Romefort
 
IoT on AWS with NodeMCU for less than 5 Euros
Johann Romefort
 
Hack the hack vivatech
Johann Romefort
 
Supply Chain Management on the blockchain with Iot, Azure, BigchainDB, VueJS
Johann Romefort
 
CoreOS introduction - by johann romefort
Johann Romefort
 
Big Data on AWS
Johann Romefort
 
Le passage de clientele a communaute
Johann Romefort
 
Webcom - From the Social Web to the Web of Data
Johann Romefort
 
Seesmic - Using Free to Create Value
Johann Romefort
 
Ad

Recently uploaded (20)

PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Python basic programing language for automation
DanialHabibi2
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 

A Gentle introduction to Blockchain with Ethereum

  • 1. A Gentle Introduction To Blockchain With Ethereum Johann Romefort, Tech Evangelist at Stylight Twitter: @romefort Blog: http://romefort.net LinkedIn: http://linkedin.com/in/romefort Email: [email protected]
  • 2. Agenda ● The Trust Industry ● Disruptive Nature of Blockchain ● Ethereum ● Demo!
  • 3. What Is the Buzz about Blockchain
  • 5. The History of Trust and Exchange of Value
  • 6. 3500 Years Ago: The Signet Ring Signet rings have been used since as far back as 3500 BC when the people of Mesopotamia began using them as a method of authenticity. Each was unique to one person.
  • 7. Today: 3rd-Party Trust Guarantors ● Banks ● Insurance ● Land registries ● Governments ● Credit companies ● Legal Agencies
  • 8. Trust Comes at a Price ● Operational Costs ● Risk ● Time ● Centralization
  • 9. 3rd-Party Trust Is Fragile and Disrupted ● 2008 financial meltdown ● Government surveillance ● Elections ● Social media giants ● Data breaches
  • 10. The Edelman Trust Barometer Source: https://www.scribd.com/document/336621519/2017-Edelman-Trust-Barometer-Executive-Summary
  • 11. The Double-Spending Problem ● You need to make sure the ownership of the item of value is moving from A to B ● In a digital world this is a problem as assets can be copied. ● This is why we needed 3rd party which we can trust and can ensure the validity of the transaction
  • 12. Until January 3rd, 2009 First blockchain implementation deployed under the name: “Bitcoin: A Peer-to-Peer Electronic Cash System” By Satoshi Nakamoto
  • 13. The Distributed and Transparent Nature of Blockchain
  • 14. What is Blockchain? ● It’s an immutable distributed public ledger ● All transactions are timestamped and recorded into blocks ● Distributed database with no single point of failure ● Can’t be controlled by authorities such as government due to its decentralized nature ● Solve the double-spending problem without need for 3rd party of trust.
  • 15. What is a Hash? ● Mathematical function which turns data into a fingerprint of that data called ● You can’t deduce the data from the hash. ● The same data will have the same Hash. ● Slightly different data will have a totally different hash
  • 16. What about Ethereum? ● It’s the second largest Blockchain implementation ● It can be a seen as a blockchain of second generation ● It contains new features such as Smart Contracts
  • 17. What’s a Block? ● Bundle transactions ● Contains previous block hash ● All blocks are linked through their hashes ● You can’t change the data in one block without breaking the chain ● Unless you mine it all over again
  • 18. What’s a transaction? ● An operation that writes data on the blockchain ● Each transaction incurs a fee ● Simple transaction sending ETH from one address to another ● More complicated transactions involve Smart Contracts
  • 19. Smart Contracts ● Introduced in Ethereum Blockchain ● Run code directly on the blockchain ● Each smart contract has its own wallet ● Smart Contracts can invoke each others ● Written in Solidity
  • 20. Enabling New kinds of Organizations ● DAO: Decentralized Autonomous Organization ● New type of organization governed by multiple smart contracts ● Token holders can be granted the right to vote for example
  • 22. Many chains available ● Main Net: This is the production network - Don’t use it for development purposes! ● Rinkeby: https://www.rinkeby.io/#stats ○ PoA (Proof of Authority) ○ Immune to Spam attacks ○ Supported by geth only ○ Request ether through faucet: https://faucet.rinkeby.io/ ● Ropsten: Best reproduce the current prod. Env. ○ Subject to Spam ○ Ether can be mined or requested ● Solo Network
  • 24. Truffle - development framework for Ethereum
  • 25. Setting up our development environment npm install -g truffle npm install -g ganache-cli truffle init ganache-cli -p 7545
  • 26. Ganache run a local EVM (Ethereum Virtual Machine) Also: ● Create accounts ● their private keys ● Fund the accounts with 100ETH
  • 27. Our first Smart Contract: HelloWorld.sol
  • 28. Write the migration Save this in migrations/2_deploy
  • 29. Adjust truffle.js You can also get rid of the truffle-config.js file // depending on your platform
  • 30. Let’s compile and deploy our contract truffle compile truffle migrate --network development Compile will compile our Solidity code to bytecode (the code that the Ethereum Virtual Machine (EVM) understands), in our case, Ganache emulates the EVM. Migrate will deploy the code to the blockchain, in our case, the blockchain could be found in the network “development” we set earlier in the “truffle-config.js” file.
  • 33. Interact with the Contract 1/get an instance 2/get the contract address 3/get the message var content
  • 34. If you prefer a GUI