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

PDF
Introduction to Blockchain with an Ethereuem Hands-on
PDF
The Blockchain: Introduction and Implications
PPTX
Introduction to blockchain
PDF
An Introduction to Blockchain
PPTX
The curious case of Blockchain Technology
PDF
Blockchain Investing, January 2018
PPTX
Block chain technology in pcs
PDF
Introducing the Blockchain and Distributed Ledger Technology
Introduction to Blockchain with an Ethereuem Hands-on
The Blockchain: Introduction and Implications
Introduction to blockchain
An Introduction to Blockchain
The curious case of Blockchain Technology
Blockchain Investing, January 2018
Block chain technology in pcs
Introducing the Blockchain and Distributed Ledger Technology

What's hot (20)

PPTX
From Cryptoequity to Cryptocommons
PPTX
PDF
How do blockchain and internet of things match?
PPTX
Blockchain Investing 2018
PDF
Blockchain powering the internet of value
ODP
CBGTBT - Part 1 - Workshop introduction & primer
PPTX
BLOCK CHAIN TECHNOLOGY
PDF
2018 Lunch & Learn Blockchain Overview
PPTX
Block chain
PDF
Blockchain: 12 predictions for a new world
PDF
Block chains and crypto currencies - introduction
PDF
Understanding private blockchains
PPTX
Blockchain’s implications for the financial industry
PDF
Bitcoin presentation
PPTX
What is Block-Chain Technology?
PPTX
Week 3 - Cryptocurrencies
PPTX
Introduction to blockchain 2018
PPTX
Bitcoin, Cryptocurrency, & Blockchain Presentation
PDF
Blockchain Technology And Cryptocurrency
PPTX
Basic introduction in blockchain, smart contracts, permissioned ledgers
From Cryptoequity to Cryptocommons
How do blockchain and internet of things match?
Blockchain Investing 2018
Blockchain powering the internet of value
CBGTBT - Part 1 - Workshop introduction & primer
BLOCK CHAIN TECHNOLOGY
2018 Lunch & Learn Blockchain Overview
Block chain
Blockchain: 12 predictions for a new world
Block chains and crypto currencies - introduction
Understanding private blockchains
Blockchain’s implications for the financial industry
Bitcoin presentation
What is Block-Chain Technology?
Week 3 - Cryptocurrencies
Introduction to blockchain 2018
Bitcoin, Cryptocurrency, & Blockchain Presentation
Blockchain Technology And Cryptocurrency
Basic introduction in blockchain, smart contracts, permissioned ledgers

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

PDF
Blockchain and smart contracts, what they are and why you should really care ...
ODP
Stefano Maestri - Blockchain and smart contracts, what they are and why you s...
PDF
Part 4: Understanding the working of Smart Contracts
PPTX
Ethereum (Blockchain Network)
PDF
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
PDF
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
PDF
Introduction to Bitcoin, Blockchain, and Ethereum by Justin Wu
PPTX
Overview-of-Blockchain-Technology-and-Ethereum.pptx
PPTX
Blockchain for Developers
PPTX
Introduction_to_Blockchain_&_Ethereum.pptx
PDF
Developing Blockchain Applications
PPTX
Understanding blockchain
PDF
Evaluation of Ethereum
PDF
Ethereum Blockchain and DApps - Workshop at Software University
PDF
The JavaScript toolset for development on Ethereum
PDF
Javascript toolset for Ethereum Smart Contract development
PPTX
PDF
Python, Blockchain, and Byte-Size Change
PPTX
Blockchain Technology Unit 4.pptxmmmmmmmmm
PDF
BlockChain Basic Concepts
Blockchain and smart contracts, what they are and why you should really care ...
Stefano Maestri - Blockchain and smart contracts, what they are and why you s...
Part 4: Understanding the working of Smart Contracts
Ethereum (Blockchain Network)
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Introduction to Bitcoin, Blockchain, and Ethereum by Justin Wu
Overview-of-Blockchain-Technology-and-Ethereum.pptx
Blockchain for Developers
Introduction_to_Blockchain_&_Ethereum.pptx
Developing Blockchain Applications
Understanding blockchain
Evaluation of Ethereum
Ethereum Blockchain and DApps - Workshop at Software University
The JavaScript toolset for development on Ethereum
Javascript toolset for Ethereum Smart Contract development
Python, Blockchain, and Byte-Size Change
Blockchain Technology Unit 4.pptxmmmmmmmmm
BlockChain Basic Concepts

More from Johann Romefort (8)

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

Recently uploaded (20)

PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PPTX
Report in SIP_Distance_Learning_Technology_Impact.pptx
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PPTX
How to use fields_get method in Odoo 18
PDF
The AI Revolution in Customer Service - 2025
PPTX
Blending method and technology for hydrogen.pptx
PDF
Advancing precision in air quality forecasting through machine learning integ...
PDF
Introduction to MCP and A2A Protocols: Enabling Agent Communication
PPTX
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PPTX
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
PDF
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
PDF
Human Computer Interaction Miterm Lesson
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
Launch a Bumble-Style App with AI Features in 2025.pdf
PDF
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
Report in SIP_Distance_Learning_Technology_Impact.pptx
Lung cancer patients survival prediction using outlier detection and optimize...
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
How to use fields_get method in Odoo 18
The AI Revolution in Customer Service - 2025
Blending method and technology for hydrogen.pptx
Advancing precision in air quality forecasting through machine learning integ...
Introduction to MCP and A2A Protocols: Enabling Agent Communication
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
Rapid Prototyping: A lecture on prototyping techniques for interface design
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
Early detection and classification of bone marrow changes in lumbar vertebrae...
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
Human Computer Interaction Miterm Lesson
Data Virtualization in Action: Scaling APIs and Apps with FME
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
Launch a Bumble-Style App with AI Features in 2025.pdf
A hybrid framework for wild animal classification using fine-tuned DenseNet12...

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