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
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
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

From Cryptoequity to Cryptocommons
From Cryptoequity to CryptocommonsFrom Cryptoequity to Cryptocommons
From Cryptoequity to Cryptocommons
Raffaele Mauro
 
Block chain
Block chainBlock chain
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?
Bob Peters
 
Blockchain Investing 2018
Blockchain Investing 2018Blockchain Investing 2018
Blockchain Investing 2018
Christian Kameir
 
Blockchain powering the internet of value
Blockchain powering the internet of value  Blockchain powering the internet of value
Blockchain powering the internet of value
Diego Alberto Tamayo
 
CBGTBT - Part 1 - Workshop introduction & primer
CBGTBT - Part 1 - Workshop introduction & primerCBGTBT - Part 1 - Workshop introduction & primer
CBGTBT - Part 1 - Workshop introduction & primer
Blockstrap.com
 
BLOCK CHAIN TECHNOLOGY
BLOCK CHAIN TECHNOLOGYBLOCK CHAIN TECHNOLOGY
BLOCK CHAIN TECHNOLOGY
CANiharikaGarg
 
2018 Lunch & Learn Blockchain Overview
2018 Lunch & Learn Blockchain Overview2018 Lunch & Learn Blockchain Overview
2018 Lunch & Learn Blockchain Overview
Paperchain
 
Block chain
Block chainBlock chain
Block chain
Saranya Krishnan
 
Blockchain: 12 predictions for a new world
Blockchain: 12 predictions for a new worldBlockchain: 12 predictions for a new world
Blockchain: 12 predictions for a new world
Philippe Camacho, Ph.D.
 
Block chains and crypto currencies - introduction
Block chains and crypto currencies - introductionBlock chains and crypto currencies - introduction
Block chains and crypto currencies - introduction
Initio
 
Understanding private blockchains
Understanding private blockchainsUnderstanding private blockchains
Understanding private blockchains
Coin Sciences Ltd
 
Blockchain’s implications for the financial industry
Blockchain’s implications for the financial industryBlockchain’s implications for the financial industry
Blockchain’s implications for the financial industry
Initio
 
Bitcoin presentation
Bitcoin presentationBitcoin presentation
Bitcoin presentation
Francis Pouliot
 
What is Block-Chain Technology?
What is Block-Chain Technology?What is Block-Chain Technology?
What is Block-Chain Technology?
ThreadSol
 
Week 3 - Cryptocurrencies
Week 3 - CryptocurrenciesWeek 3 - Cryptocurrencies
Week 3 - Cryptocurrencies
Roger Royse
 
Introduction to blockchain 2018
Introduction to blockchain 2018Introduction to blockchain 2018
Introduction to blockchain 2018
Christian Kameir
 
Bitcoin, Cryptocurrency, & Blockchain Presentation
Bitcoin, Cryptocurrency, & Blockchain PresentationBitcoin, Cryptocurrency, & Blockchain Presentation
Bitcoin, Cryptocurrency, & Blockchain Presentation
MaxWheelock
 
Blockchain Technology And Cryptocurrency
Blockchain Technology And CryptocurrencyBlockchain Technology And Cryptocurrency
Blockchain Technology And Cryptocurrency
Eno Bassey
 
Basic introduction in blockchain, smart contracts, permissioned ledgers
Basic introduction in blockchain, smart contracts, permissioned ledgersBasic introduction in blockchain, smart contracts, permissioned ledgers
Basic introduction in blockchain, smart contracts, permissioned ledgers
Koen Vingerhoets
 

What's hot (20)

From Cryptoequity to Cryptocommons
From Cryptoequity to CryptocommonsFrom Cryptoequity to Cryptocommons
From Cryptoequity to Cryptocommons
 
Block chain
Block chainBlock chain
Block chain
 
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?
 
Blockchain Investing 2018
Blockchain Investing 2018Blockchain Investing 2018
Blockchain Investing 2018
 
Blockchain powering the internet of value
Blockchain powering the internet of value  Blockchain powering the internet of value
Blockchain powering the internet of value
 
CBGTBT - Part 1 - Workshop introduction & primer
CBGTBT - Part 1 - Workshop introduction & primerCBGTBT - Part 1 - Workshop introduction & primer
CBGTBT - Part 1 - Workshop introduction & primer
 
BLOCK CHAIN TECHNOLOGY
BLOCK CHAIN TECHNOLOGYBLOCK CHAIN TECHNOLOGY
BLOCK CHAIN TECHNOLOGY
 
2018 Lunch & Learn Blockchain Overview
2018 Lunch & Learn Blockchain Overview2018 Lunch & Learn Blockchain Overview
2018 Lunch & Learn Blockchain Overview
 
Block chain
Block chainBlock chain
Block chain
 
Blockchain: 12 predictions for a new world
Blockchain: 12 predictions for a new worldBlockchain: 12 predictions for a new world
Blockchain: 12 predictions for a new world
 
Block chains and crypto currencies - introduction
Block chains and crypto currencies - introductionBlock chains and crypto currencies - introduction
Block chains and crypto currencies - introduction
 
Understanding private blockchains
Understanding private blockchainsUnderstanding private blockchains
Understanding private blockchains
 
Blockchain’s implications for the financial industry
Blockchain’s implications for the financial industryBlockchain’s implications for the financial industry
Blockchain’s implications for the financial industry
 
Bitcoin presentation
Bitcoin presentationBitcoin presentation
Bitcoin presentation
 
What is Block-Chain Technology?
What is Block-Chain Technology?What is Block-Chain Technology?
What is Block-Chain Technology?
 
Week 3 - Cryptocurrencies
Week 3 - CryptocurrenciesWeek 3 - Cryptocurrencies
Week 3 - Cryptocurrencies
 
Introduction to blockchain 2018
Introduction to blockchain 2018Introduction to blockchain 2018
Introduction to blockchain 2018
 
Bitcoin, Cryptocurrency, & Blockchain Presentation
Bitcoin, Cryptocurrency, & Blockchain PresentationBitcoin, Cryptocurrency, & Blockchain Presentation
Bitcoin, Cryptocurrency, & Blockchain Presentation
 
Blockchain Technology And Cryptocurrency
Blockchain Technology And CryptocurrencyBlockchain Technology And Cryptocurrency
Blockchain Technology And Cryptocurrency
 
Basic introduction in blockchain, smart contracts, permissioned ledgers
Basic introduction in blockchain, smart contracts, permissioned ledgersBasic introduction in blockchain, smart contracts, permissioned ledgers
Basic introduction in blockchain, smart contracts, permissioned ledgers
 

Similar to A Gentle introduction to Blockchain with Ethereum

Blockchain Basics
Blockchain BasicsBlockchain Basics
Blockchain Basics
Ali Ayyash
 
Whats, Whys and Hows of NFTs?
Whats, Whys and Hows of NFTs?Whats, Whys and Hows of NFTs?
Whats, Whys and Hows of NFTs?
Abhinav Gupta
 
Blockchain and cryptocurrency
Blockchain and cryptocurrencyBlockchain and cryptocurrency
Blockchain and cryptocurrency
Abhishek Kori
 
Blockchain in a Nutshell
Blockchain in a NutshellBlockchain in a Nutshell
Blockchain in a Nutshell
Shermin Voshmgir
 
Blockchain Explained
Blockchain ExplainedBlockchain Explained
Blockchain Explained
Shermin Voshmgir
 
What is a blockchain?
What is a blockchain?What is a blockchain?
What is a blockchain?
Kevin Koo
 
Blockchain 101
Blockchain 101Blockchain 101
Blockchain 101
Jan Baeriswyl
 
Cryptocurrency
CryptocurrencyCryptocurrency
Cryptocurrency
Randi130025
 
crypto ppt.ppt
crypto ppt.pptcrypto ppt.ppt
crypto ppt.ppt
SakshiRawat394090
 
Blockchain and the digital future. Promises of new technology against reality
Blockchain and the digital future. Promises of new technology against realityBlockchain and the digital future. Promises of new technology against reality
Blockchain and the digital future. Promises of new technology against reality
Vladimir Seleznev
 
[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners
[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners
[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners
Hessan Adnani
 
What is Blockchain - TIEKE
What is Blockchain - TIEKE What is Blockchain - TIEKE
What is Blockchain - TIEKE
Juha Viitala
 
Introduction to Blockchains
Introduction to BlockchainsIntroduction to Blockchains
Introduction to Blockchains
Knoldus Inc.
 
Fluent destry saul
Fluent destry saulFluent destry saul
Fluent destry saul
Destry Saul
 
Iceic2019 final presented
Iceic2019 final presentedIceic2019 final presented
Iceic2019 final presented
Heung-No Lee
 
[Madmagz] The Blockchain
[Madmagz] The Blockchain[Madmagz] The Blockchain
[Madmagz] The Blockchain
Youssef Rahoui
 
Crypto 101 and a bit more [Sep-2022]
Crypto 101 and a bit more [Sep-2022]Crypto 101 and a bit more [Sep-2022]
Crypto 101 and a bit more [Sep-2022]
Ido Green
 
ICO Pitchnight #1 by Catena Capital & Herdius and friends
ICO Pitchnight #1 by Catena Capital & Herdius and friendsICO Pitchnight #1 by Catena Capital & Herdius and friends
ICO Pitchnight #1 by Catena Capital & Herdius and friends
Balazs Deme
 
Building Apps with Ethereum Smart Contract
Building Apps with Ethereum Smart ContractBuilding Apps with Ethereum Smart Contract
Building Apps with Ethereum Smart Contract
Vaideeswaran Sethuraman
 

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

Blockchain Basics
Blockchain BasicsBlockchain Basics
Blockchain Basics
 
Whats, Whys and Hows of NFTs?
Whats, Whys and Hows of NFTs?Whats, Whys and Hows of NFTs?
Whats, Whys and Hows of NFTs?
 
Blockchain and cryptocurrency
Blockchain and cryptocurrencyBlockchain and cryptocurrency
Blockchain and cryptocurrency
 
Blockchain in a Nutshell
Blockchain in a NutshellBlockchain in a Nutshell
Blockchain in a Nutshell
 
Blockchain Explained
Blockchain ExplainedBlockchain Explained
Blockchain Explained
 
What is a blockchain?
What is a blockchain?What is a blockchain?
What is a blockchain?
 
Blockchain 101
Blockchain 101Blockchain 101
Blockchain 101
 
Cryptocurrency
CryptocurrencyCryptocurrency
Cryptocurrency
 
crypto ppt.ppt
crypto ppt.pptcrypto ppt.ppt
crypto ppt.ppt
 
Blockchain and the digital future. Promises of new technology against reality
Blockchain and the digital future. Promises of new technology against realityBlockchain and the digital future. Promises of new technology against reality
Blockchain and the digital future. Promises of new technology against reality
 
[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners
[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners
[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners
 
What is Blockchain - TIEKE
What is Blockchain - TIEKE What is Blockchain - TIEKE
What is Blockchain - TIEKE
 
Introduction to Blockchains
Introduction to BlockchainsIntroduction to Blockchains
Introduction to Blockchains
 
Fluent destry saul
Fluent destry saulFluent destry saul
Fluent destry saul
 
Iceic2019 final presented
Iceic2019 final presentedIceic2019 final presented
Iceic2019 final presented
 
Bitcoin Talk at Rainbow
Bitcoin Talk at RainbowBitcoin Talk at Rainbow
Bitcoin Talk at Rainbow
 
[Madmagz] The Blockchain
[Madmagz] The Blockchain[Madmagz] The Blockchain
[Madmagz] The Blockchain
 
Crypto 101 and a bit more [Sep-2022]
Crypto 101 and a bit more [Sep-2022]Crypto 101 and a bit more [Sep-2022]
Crypto 101 and a bit more [Sep-2022]
 
ICO Pitchnight #1 by Catena Capital & Herdius and friends
ICO Pitchnight #1 by Catena Capital & Herdius and friendsICO Pitchnight #1 by Catena Capital & Herdius and friends
ICO Pitchnight #1 by Catena Capital & Herdius and friends
 
Building Apps with Ethereum Smart Contract
Building Apps with Ethereum Smart ContractBuilding Apps with Ethereum Smart Contract
Building Apps with Ethereum Smart Contract
 

More from Johann Romefort

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
Johann Romefort
 
Hack the hack vivatech
Hack the hack vivatechHack the hack vivatech
Hack the hack vivatech
Johann Romefort
 
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
Johann Romefort
 
CoreOS introduction - by johann romefort
CoreOS introduction - by johann romefortCoreOS introduction - by johann romefort
CoreOS introduction - by johann romefort
Johann Romefort
 
Big Data on AWS
Big Data on AWSBig Data on AWS
Big Data on AWS
Johann Romefort
 
Le passage de clientele a communaute
Le passage de clientele a communauteLe passage de clientele a communaute
Le passage de clientele a communauteJohann Romefort
 
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 DataJohann Romefort
 
Seesmic - Using Free to Create Value
Seesmic - Using Free to Create ValueSeesmic - Using Free to Create Value
Seesmic - Using Free to Create ValueJohann Romefort
 

More from 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
 

Recently uploaded

GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.
ViralQR
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
UiPathCommunity
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 

Recently uploaded (20)

GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 

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: johann.romefort@stylight.com
  • 2. Agenda ● The Trust Industry ● Disruptive Nature of Blockchain ● Ethereum ● Demo!
  • 3. What Is the Buzz about Blockchain
  • 4.
  • 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
  • 23.
  • 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