SlideShare a Scribd company logo
Introduction to Blockhain &
whoami
• George Konstantopoulos (@gakonst)
• 5th year Electrical & Computer Engineering AUTh
• Professional Interests:
• Blockchain (esp. Sidechains & Consensus)
• Information Security (Organized infosec meetup @AUTh “ThessSec”)
• Internet of Things
• Autonomous Vehicles
• Misc. Interests
• Boxing
• Blues guitar
• Foreign languages (Japanese currently)
• Binge-watching series
2
Overview
• Part 1: Introduction to Blockchain & Ethereum
• Hashes, Blocks, Blockchains
• Trust & Transacting on a Blockchain
• Evolution of Blockchains
• Inside Ethereum
• Part 2: Solidity by Example (technical)
• A simple Crowdfunding Smart Contract in Solidity
• Deploying and interacting with Smart Contracts in Python
3
Blockchain Lingo
• Consensus: network participants agree on a state
• Consensus algorithm, Proof of {Work, Stake, …}
• Transaction: Transfer of value from A to B
• Block: Bundle of transactions
• Block time: avg. time until a new block is created
• Miners: burn energy to create blocks, get rewarded by block reward +
transaction fees
• Block reward: new coins created with each block, goes to miners
• Transaction fees: small % of tx value, goes to miners
4
What is a (one-way) hash?
5
Secure function  Irreversible
What is a block?
6
https://anders.com/blockchain/
What is a blockchain?
7
https://anders.com/blockchain/ Prev changed in Block 2 and 3  Block hash changed  Invalid block
Malicious transaction added
by some user
8
Mining? Block reward? Tx Fees?
9
10
What is a Blockchain?
11
https://medium.com/@micheledaliessi/how-does-the-blockchain-work-98c8cd01d2ae
In Bitcoin
approximately
What is a Blockchain?
12
A blockchain is a database that can be shared between a group of non-
trusting individuals, without needing a central party to maintain the
state of the database.
13
https://medium.com/@preethikasireddy/eli5-what-do-we-mean-by-blockchains-are-trustless-aa420635d5f6
Trustless?
14
How does a transaction work?
https://medium.com/@preethikasireddy/eli5-what-do-we-mean-by-blockchains-are-trustless-aa420635d5f6
She paid $10
15
https://medium.com/@preethikasireddy/eli5-what-do-we-mean-by-blockchains-are-trustless-aa420635d5f6
Trustless?
“Blockchains don’t actually eliminate trust.
What they do is minimize the amount of trust required from any single
actor in the system.
They do this by distributing trust among different actors in the system via
an economic game that incentivizes actors to cooperate with the rules
defined by the protocol.”
Blockchains are useful for more than just money
• Identity Services (Domain/Title Registration)
• Logistics (Supply Chain Tracking)
• Crowdfunding
• Gaming/Gambling/Betting
• e-Governance/Voting
• Decentralized Exchange
16
In the beginning…
17
Evolution…
18
More features…
19
Eventually…Need for a platform!
20
Disclaimer: This is not product placement
21
Some real world applications
22*Decentralized Autonomous Organization
*
What is Ethereum?
• A blockchain
• Currency: Ether (ETH)
• Consensus: Proof of Work
• Block time: ~12.5s
• With some extra features:
• Built-in programming language
• Two types of accounts
• Decentralized Applications (DApps) = Rules defined in a “smart contract”
23
Types of Accounts
24
What is inside a Transaction?
• nonce (# of sender TXs)
• to (destination address)
• value (amount of ETH to send)
• gasPrice (amount of ether per unit gas)
• gasLimit (maximum gas consumable)
• data (readable by contract code)
• v, r, s (ECDSA signature values)
25
The Concept of Gas
Problem: Cannot tell whether or not a program will run forever
Solution: Charge fee per computational step (“gas”)
• Gas = unit of measurement (not a currency)
• Simple ether transfer transactions: 21.000 gas
• Contract calls: depends
• Block Gas Limit: Sum of all tx’s gas in a block
• like Bitcoin block size
• Miners vote on it
• Currently approx. 7.9million
26
Transactions  State Transitions
27
28
How does Gas get spent?
https://medium.com/@preethikasireddy/how-does-ethereum-work-anyway-22d1df506369
Running out of Gas
29
Where can I store ether?
• Desktop (Mist, Exodus, Metamask)
• Paper Wallet (just write down your private key)
• Hardware Wallet (Ledger Nano S, Trezor)
• Mobile Wallet (Jaxx)
• Software Wallet (Exodus)
• Hot Wallets (Exchanges)
30
You only own your cryptocurrency if you own your private keys.
Thank you for your attention
Q & A, 15min. break, Part 2 soon
Contact: me@gakonst.com / @gakonst
32
References
• Ethereum in 25 Minutes – Vitalik Buterin
• https://github.com/ethereum/wiki/wiki/White-Paper
• https://medium.com/@preethikasireddy/how-does-ethereum-work-
anyway-22d1df506369
• https://blog.zeppelin.solutions/a-gentle-introduction-to-ethereum-
programming-part-1-783cc7796094
34

More Related Content

What's hot (20)

Blockchain seminar
Blockchain seminarBlockchain seminar
Blockchain seminar
Amiyabablu
 
A comparison of blockchain technologies for distributed voting
A comparison of blockchain technologies for distributed votingA comparison of blockchain technologies for distributed voting
A comparison of blockchain technologies for distributed voting
Roderik van der Veer
 
Hands on with multichain
Hands on with multichainHands on with multichain
Hands on with multichain
Roderik van der Veer
 
Introduction to Bitcoin for programmers
Introduction to Bitcoin for programmersIntroduction to Bitcoin for programmers
Introduction to Bitcoin for programmers
Wojciech Langiewicz
 
Bitcoin: introduction for programmers - Pecha Kucha
Bitcoin:   introduction for programmers - Pecha KuchaBitcoin:   introduction for programmers - Pecha Kucha
Bitcoin: introduction for programmers - Pecha Kucha
Wojciech Langiewicz
 
Bitcoin for programmers - part 1 version 2
Bitcoin for programmers - part 1 version 2Bitcoin for programmers - part 1 version 2
Bitcoin for programmers - part 1 version 2
Wojciech Langiewicz
 
Lightning Network
Lightning  NetworkLightning  Network
Lightning Network
Felix Crisan
 
Bitcoin 101 - mBTC.ph
Bitcoin 101 - mBTC.phBitcoin 101 - mBTC.ph
Bitcoin 101 - mBTC.ph
Macoy Mejia
 
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
Sathish VJ
 
Cryptocurrencies 101 v5 public
Cryptocurrencies 101 v5 publicCryptocurrencies 101 v5 public
Cryptocurrencies 101 v5 public
Brett Colbert
 
How does the Bitcoin network work?
How does the Bitcoin network work?How does the Bitcoin network work?
How does the Bitcoin network work?
Akshay Kumar
 
The Bitcoin Lightning Network
The Bitcoin Lightning NetworkThe Bitcoin Lightning Network
The Bitcoin Lightning Network
Shun Shiku
 
Intro to blockchain technology
Intro to blockchain technologyIntro to blockchain technology
Intro to blockchain technology
Galin Dinkov
 
CBGTBT - Part 5 - Blockchains 102
CBGTBT - Part 5 - Blockchains 102CBGTBT - Part 5 - Blockchains 102
CBGTBT - Part 5 - Blockchains 102
Blockstrap.com
 
Bitcoin: What You Need to Know
Bitcoin: What You Need to KnowBitcoin: What You Need to Know
Bitcoin: What You Need to Know
Portia Burton
 
Blockchain Technology - The Next Superpower By Priyank Vaghela
Blockchain Technology - The Next Superpower By Priyank VaghelaBlockchain Technology - The Next Superpower By Priyank Vaghela
Blockchain Technology - The Next Superpower By Priyank Vaghela
PriyankVaghela
 
The Lightning Network - A gentle introduction
The Lightning Network - A gentle introductionThe Lightning Network - A gentle introduction
The Lightning Network - A gentle introduction
Roland Stadler
 
Blockchain
BlockchainBlockchain
Blockchain
TechPrimers
 
Blockchain 101
Blockchain 101Blockchain 101
Blockchain 101
Oded Noam
 
Ethereum overview
Ethereum overviewEthereum overview
Ethereum overview
Alexander (Alex) Komyagin
 
Blockchain seminar
Blockchain seminarBlockchain seminar
Blockchain seminar
Amiyabablu
 
A comparison of blockchain technologies for distributed voting
A comparison of blockchain technologies for distributed votingA comparison of blockchain technologies for distributed voting
A comparison of blockchain technologies for distributed voting
Roderik van der Veer
 
Introduction to Bitcoin for programmers
Introduction to Bitcoin for programmersIntroduction to Bitcoin for programmers
Introduction to Bitcoin for programmers
Wojciech Langiewicz
 
Bitcoin: introduction for programmers - Pecha Kucha
Bitcoin:   introduction for programmers - Pecha KuchaBitcoin:   introduction for programmers - Pecha Kucha
Bitcoin: introduction for programmers - Pecha Kucha
Wojciech Langiewicz
 
Bitcoin for programmers - part 1 version 2
Bitcoin for programmers - part 1 version 2Bitcoin for programmers - part 1 version 2
Bitcoin for programmers - part 1 version 2
Wojciech Langiewicz
 
Bitcoin 101 - mBTC.ph
Bitcoin 101 - mBTC.phBitcoin 101 - mBTC.ph
Bitcoin 101 - mBTC.ph
Macoy Mejia
 
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
Sathish VJ
 
Cryptocurrencies 101 v5 public
Cryptocurrencies 101 v5 publicCryptocurrencies 101 v5 public
Cryptocurrencies 101 v5 public
Brett Colbert
 
How does the Bitcoin network work?
How does the Bitcoin network work?How does the Bitcoin network work?
How does the Bitcoin network work?
Akshay Kumar
 
The Bitcoin Lightning Network
The Bitcoin Lightning NetworkThe Bitcoin Lightning Network
The Bitcoin Lightning Network
Shun Shiku
 
Intro to blockchain technology
Intro to blockchain technologyIntro to blockchain technology
Intro to blockchain technology
Galin Dinkov
 
CBGTBT - Part 5 - Blockchains 102
CBGTBT - Part 5 - Blockchains 102CBGTBT - Part 5 - Blockchains 102
CBGTBT - Part 5 - Blockchains 102
Blockstrap.com
 
Bitcoin: What You Need to Know
Bitcoin: What You Need to KnowBitcoin: What You Need to Know
Bitcoin: What You Need to Know
Portia Burton
 
Blockchain Technology - The Next Superpower By Priyank Vaghela
Blockchain Technology - The Next Superpower By Priyank VaghelaBlockchain Technology - The Next Superpower By Priyank Vaghela
Blockchain Technology - The Next Superpower By Priyank Vaghela
PriyankVaghela
 
The Lightning Network - A gentle introduction
The Lightning Network - A gentle introductionThe Lightning Network - A gentle introduction
The Lightning Network - A gentle introduction
Roland Stadler
 
Blockchain 101
Blockchain 101Blockchain 101
Blockchain 101
Oded Noam
 

Similar to Introduction to Blockchain and Ethereum (20)

BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & Ethereum
BlockchainHub Graz
 
Intro to Blockchain Slides
Intro to Blockchain SlidesIntro to Blockchain Slides
Intro to Blockchain Slides
Shannon Wells
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
seancarmody
 
Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_li
nikinew1
 
An Introduction to Blockchains
An Introduction to BlockchainsAn Introduction to Blockchains
An Introduction to Blockchains
Dr. Nikolaus Lipusch
 
Upfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deckUpfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deck
Mark Suster
 
Introduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrenciesIntroduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrencies
Sergey Ivliev
 
Blockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentationBlockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentation
Paperchain
 
Blockchain general presentation nov 2017 v eng
Blockchain general presentation nov 2017 v engBlockchain general presentation nov 2017 v eng
Blockchain general presentation nov 2017 v eng
David Vangulick
 
Blockchain Fundamentals for basics understanding .pdf
Blockchain Fundamentals for basics understanding .pdfBlockchain Fundamentals for basics understanding .pdf
Blockchain Fundamentals for basics understanding .pdf
pronab Kurmi
 
Blockchain and Cryptocurrencies
Blockchain and CryptocurrenciesBlockchain and Cryptocurrencies
Blockchain and Cryptocurrencies
nimeshQ
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and Bitcoin
Hugo Rodrigues
 
2019 blockchain economy
2019 blockchain economy2019 blockchain economy
2019 blockchain economy
Heung-No Lee
 
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
WeKCo Coworking
 
Blockchain
BlockchainBlockchain
Blockchain
Software Infrastructure
 
Blockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business ApplicationsBlockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business Applications
Matthias Zimmermann
 
Blockchain for Developers
Blockchain for DevelopersBlockchain for Developers
Blockchain for Developers
Shimi Bandiel
 
Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
Codemotion
 
Blockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
Blockchain Technology | Bitcoin | Ethereum Coin | CryptocurrencyBlockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
Blockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
Unbiased Technolab
 
Blockchain, AI and Machine Learning
Blockchain, AI and Machine LearningBlockchain, AI and Machine Learning
Blockchain, AI and Machine Learning
Tao Wang
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & Ethereum
BlockchainHub Graz
 
Intro to Blockchain Slides
Intro to Blockchain SlidesIntro to Blockchain Slides
Intro to Blockchain Slides
Shannon Wells
 
Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
seancarmody
 
Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_li
nikinew1
 
Upfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deckUpfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deck
Mark Suster
 
Introduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrenciesIntroduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrencies
Sergey Ivliev
 
Blockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentationBlockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentation
Paperchain
 
Blockchain general presentation nov 2017 v eng
Blockchain general presentation nov 2017 v engBlockchain general presentation nov 2017 v eng
Blockchain general presentation nov 2017 v eng
David Vangulick
 
Blockchain Fundamentals for basics understanding .pdf
Blockchain Fundamentals for basics understanding .pdfBlockchain Fundamentals for basics understanding .pdf
Blockchain Fundamentals for basics understanding .pdf
pronab Kurmi
 
Blockchain and Cryptocurrencies
Blockchain and CryptocurrenciesBlockchain and Cryptocurrencies
Blockchain and Cryptocurrencies
nimeshQ
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and Bitcoin
Hugo Rodrigues
 
2019 blockchain economy
2019 blockchain economy2019 blockchain economy
2019 blockchain economy
Heung-No Lee
 
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
WeKCo Coworking
 
Blockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business ApplicationsBlockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business Applications
Matthias Zimmermann
 
Blockchain for Developers
Blockchain for DevelopersBlockchain for Developers
Blockchain for Developers
Shimi Bandiel
 
Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
Simone Bronzini - Weaknesses of blockchain applications - Codemotion Milan 2018
Codemotion
 
Blockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
Blockchain Technology | Bitcoin | Ethereum Coin | CryptocurrencyBlockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
Blockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
Unbiased Technolab
 
Blockchain, AI and Machine Learning
Blockchain, AI and Machine LearningBlockchain, AI and Machine Learning
Blockchain, AI and Machine Learning
Tao Wang
 
Ad

Recently uploaded (20)

Dancing with AI - A Developer's Journey.pptx
Dancing with AI - A Developer's Journey.pptxDancing with AI - A Developer's Journey.pptx
Dancing with AI - A Developer's Journey.pptx
Elliott Richmond
 
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and ImplementationAI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
Christine Shepherd
 
Domino IQ – What to Expect, First Steps and Use Cases
Domino IQ – What to Expect, First Steps and Use CasesDomino IQ – What to Expect, First Steps and Use Cases
Domino IQ – What to Expect, First Steps and Use Cases
panagenda
 
Your startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean accountYour startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean account
angelo60207
 
AI Creative Generates You Passive Income Like Never Before
AI Creative Generates You Passive Income Like Never BeforeAI Creative Generates You Passive Income Like Never Before
AI Creative Generates You Passive Income Like Never Before
SivaRajan47
 
Evaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical ContentEvaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical Content
Paul Groth
 
soulmaite review - Find Real AI soulmate review
soulmaite review - Find Real AI soulmate reviewsoulmaite review - Find Real AI soulmate review
soulmaite review - Find Real AI soulmate review
Soulmaite
 
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOMEstablish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Anchore
 
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdfHow Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
Rejig Digital
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
Trends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary MeekerTrends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary Meeker
Clive Dickens
 
TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025
Suyash Joshi
 
6th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 20256th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 2025
DanBrown980551
 
Trends Report: Artificial Intelligence (AI)
Trends Report: Artificial Intelligence (AI)Trends Report: Artificial Intelligence (AI)
Trends Report: Artificial Intelligence (AI)
Brian Ahier
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
Data Virtualization: Bringing the Power of FME to Any Application
Data Virtualization: Bringing the Power of FME to Any ApplicationData Virtualization: Bringing the Power of FME to Any Application
Data Virtualization: Bringing the Power of FME to Any Application
Safe Software
 
ISOIEC 42005 Revolutionalises AI Impact Assessment.pptx
ISOIEC 42005 Revolutionalises AI Impact Assessment.pptxISOIEC 42005 Revolutionalises AI Impact Assessment.pptx
ISOIEC 42005 Revolutionalises AI Impact Assessment.pptx
AyilurRamnath1
 
Boosting MySQL with Vector Search -THE VECTOR SEARCH CONFERENCE 2025 .pdf
Boosting MySQL with Vector Search -THE VECTOR SEARCH CONFERENCE 2025 .pdfBoosting MySQL with Vector Search -THE VECTOR SEARCH CONFERENCE 2025 .pdf
Boosting MySQL with Vector Search -THE VECTOR SEARCH CONFERENCE 2025 .pdf
Alkin Tezuysal
 
If You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FMEIf You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FME
Safe Software
 
Oracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI FoundationsOracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI Foundations
VICTOR MAESTRE RAMIREZ
 
Dancing with AI - A Developer's Journey.pptx
Dancing with AI - A Developer's Journey.pptxDancing with AI - A Developer's Journey.pptx
Dancing with AI - A Developer's Journey.pptx
Elliott Richmond
 
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and ImplementationAI Agents in Logistics and Supply Chain Applications Benefits and Implementation
AI Agents in Logistics and Supply Chain Applications Benefits and Implementation
Christine Shepherd
 
Domino IQ – What to Expect, First Steps and Use Cases
Domino IQ – What to Expect, First Steps and Use CasesDomino IQ – What to Expect, First Steps and Use Cases
Domino IQ – What to Expect, First Steps and Use Cases
panagenda
 
Your startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean accountYour startup on AWS - How to architect and maintain a Lean and Mean account
Your startup on AWS - How to architect and maintain a Lean and Mean account
angelo60207
 
AI Creative Generates You Passive Income Like Never Before
AI Creative Generates You Passive Income Like Never BeforeAI Creative Generates You Passive Income Like Never Before
AI Creative Generates You Passive Income Like Never Before
SivaRajan47
 
Evaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical ContentEvaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical Content
Paul Groth
 
soulmaite review - Find Real AI soulmate review
soulmaite review - Find Real AI soulmate reviewsoulmaite review - Find Real AI soulmate review
soulmaite review - Find Real AI soulmate review
Soulmaite
 
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOMEstablish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Establish Visibility and Manage Risk in the Supply Chain with Anchore SBOM
Anchore
 
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdfHow Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
How Advanced Environmental Detection Is Revolutionizing Oil & Gas Safety.pdf
Rejig Digital
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
Trends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary MeekerTrends Artificial Intelligence - Mary Meeker
Trends Artificial Intelligence - Mary Meeker
Clive Dickens
 
TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025TimeSeries Machine Learning - PyData London 2025
TimeSeries Machine Learning - PyData London 2025
Suyash Joshi
 
6th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 20256th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 2025
DanBrown980551
 
Trends Report: Artificial Intelligence (AI)
Trends Report: Artificial Intelligence (AI)Trends Report: Artificial Intelligence (AI)
Trends Report: Artificial Intelligence (AI)
Brian Ahier
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
Data Virtualization: Bringing the Power of FME to Any Application
Data Virtualization: Bringing the Power of FME to Any ApplicationData Virtualization: Bringing the Power of FME to Any Application
Data Virtualization: Bringing the Power of FME to Any Application
Safe Software
 
ISOIEC 42005 Revolutionalises AI Impact Assessment.pptx
ISOIEC 42005 Revolutionalises AI Impact Assessment.pptxISOIEC 42005 Revolutionalises AI Impact Assessment.pptx
ISOIEC 42005 Revolutionalises AI Impact Assessment.pptx
AyilurRamnath1
 
Boosting MySQL with Vector Search -THE VECTOR SEARCH CONFERENCE 2025 .pdf
Boosting MySQL with Vector Search -THE VECTOR SEARCH CONFERENCE 2025 .pdfBoosting MySQL with Vector Search -THE VECTOR SEARCH CONFERENCE 2025 .pdf
Boosting MySQL with Vector Search -THE VECTOR SEARCH CONFERENCE 2025 .pdf
Alkin Tezuysal
 
If You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FMEIf You Use Databricks, You Definitely Need FME
If You Use Databricks, You Definitely Need FME
Safe Software
 
Oracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI FoundationsOracle Cloud Infrastructure AI Foundations
Oracle Cloud Infrastructure AI Foundations
VICTOR MAESTRE RAMIREZ
 
Ad

Introduction to Blockchain and Ethereum

  • 2. whoami • George Konstantopoulos (@gakonst) • 5th year Electrical & Computer Engineering AUTh • Professional Interests: • Blockchain (esp. Sidechains & Consensus) • Information Security (Organized infosec meetup @AUTh “ThessSec”) • Internet of Things • Autonomous Vehicles • Misc. Interests • Boxing • Blues guitar • Foreign languages (Japanese currently) • Binge-watching series 2
  • 3. Overview • Part 1: Introduction to Blockchain & Ethereum • Hashes, Blocks, Blockchains • Trust & Transacting on a Blockchain • Evolution of Blockchains • Inside Ethereum • Part 2: Solidity by Example (technical) • A simple Crowdfunding Smart Contract in Solidity • Deploying and interacting with Smart Contracts in Python 3
  • 4. Blockchain Lingo • Consensus: network participants agree on a state • Consensus algorithm, Proof of {Work, Stake, …} • Transaction: Transfer of value from A to B • Block: Bundle of transactions • Block time: avg. time until a new block is created • Miners: burn energy to create blocks, get rewarded by block reward + transaction fees • Block reward: new coins created with each block, goes to miners • Transaction fees: small % of tx value, goes to miners 4
  • 5. What is a (one-way) hash? 5 Secure function  Irreversible
  • 6. What is a block? 6 https://anders.com/blockchain/
  • 7. What is a blockchain? 7 https://anders.com/blockchain/ Prev changed in Block 2 and 3  Block hash changed  Invalid block Malicious transaction added by some user
  • 8. 8
  • 10. 10
  • 11. What is a Blockchain? 11 https://medium.com/@micheledaliessi/how-does-the-blockchain-work-98c8cd01d2ae In Bitcoin approximately
  • 12. What is a Blockchain? 12 A blockchain is a database that can be shared between a group of non- trusting individuals, without needing a central party to maintain the state of the database.
  • 14. 14 How does a transaction work? https://medium.com/@preethikasireddy/eli5-what-do-we-mean-by-blockchains-are-trustless-aa420635d5f6 She paid $10
  • 15. 15 https://medium.com/@preethikasireddy/eli5-what-do-we-mean-by-blockchains-are-trustless-aa420635d5f6 Trustless? “Blockchains don’t actually eliminate trust. What they do is minimize the amount of trust required from any single actor in the system. They do this by distributing trust among different actors in the system via an economic game that incentivizes actors to cooperate with the rules defined by the protocol.”
  • 16. Blockchains are useful for more than just money • Identity Services (Domain/Title Registration) • Logistics (Supply Chain Tracking) • Crowdfunding • Gaming/Gambling/Betting • e-Governance/Voting • Decentralized Exchange 16
  • 20. Eventually…Need for a platform! 20 Disclaimer: This is not product placement
  • 21. 21
  • 22. Some real world applications 22*Decentralized Autonomous Organization *
  • 23. What is Ethereum? • A blockchain • Currency: Ether (ETH) • Consensus: Proof of Work • Block time: ~12.5s • With some extra features: • Built-in programming language • Two types of accounts • Decentralized Applications (DApps) = Rules defined in a “smart contract” 23
  • 25. What is inside a Transaction? • nonce (# of sender TXs) • to (destination address) • value (amount of ETH to send) • gasPrice (amount of ether per unit gas) • gasLimit (maximum gas consumable) • data (readable by contract code) • v, r, s (ECDSA signature values) 25
  • 26. The Concept of Gas Problem: Cannot tell whether or not a program will run forever Solution: Charge fee per computational step (“gas”) • Gas = unit of measurement (not a currency) • Simple ether transfer transactions: 21.000 gas • Contract calls: depends • Block Gas Limit: Sum of all tx’s gas in a block • like Bitcoin block size • Miners vote on it • Currently approx. 7.9million 26
  • 27. Transactions  State Transitions 27
  • 28. 28 How does Gas get spent? https://medium.com/@preethikasireddy/how-does-ethereum-work-anyway-22d1df506369
  • 29. Running out of Gas 29
  • 30. Where can I store ether? • Desktop (Mist, Exodus, Metamask) • Paper Wallet (just write down your private key) • Hardware Wallet (Ledger Nano S, Trezor) • Mobile Wallet (Jaxx) • Software Wallet (Exodus) • Hot Wallets (Exchanges) 30 You only own your cryptocurrency if you own your private keys.
  • 31. Thank you for your attention Q & A, 15min. break, Part 2 soon Contact: [email protected] / @gakonst 32
  • 32. References • Ethereum in 25 Minutes – Vitalik Buterin • https://github.com/ethereum/wiki/wiki/White-Paper • https://medium.com/@preethikasireddy/how-does-ethereum-work- anyway-22d1df506369 • https://blog.zeppelin.solutions/a-gentle-introduction-to-ethereum- programming-part-1-783cc7796094 34

Editor's Notes

  • #16: Blockchains don’t actually eliminate trust. What they do is minimize the amount of trust required from any single actor in the system. They do this by distributing trust among different actors in the system via an economic game that incentivizes actors to cooperate with the rules defined by the protocol.
  • #19: The term "Colored Coins" loosely describes a class of methods for representing and managing real world assets on top of the Bitcoin Blockchain. While originally designed to be a currency, Bitcoin's scripting language allows to store small amounts of metadata on the blockchain, which can be used to represent asset manipulation instructions.
  • #24: DNS Solidity: https://ethfiddle.com/Vw97YA5xgE
  • #25: Externally owned accounts, which are controlled by private keys and have no code associated with them. Contract accounts, which are controlled by their contract code and have code associated with them nonce: If the account is an externally owned account, this number represents the number of transactions sent from the account’s address. If the account is a contract account, the nonce is the number of contracts created by the account. balance: The number of Wei owned by this address. There are 1e+18 Wei per Ether. codeHash: The hash of the EVM (Ethereum Virtual Machine — more on this later) code of this account. For contract accounts, this is the code that gets hashed and stored as the codeHash. For externally owned accounts, the codeHash field is the hash of the empty string. storageRoot: A hash of the root node of a Merkle Patricia tree (we’ll explain Merkle trees later on). This tree encodes the hash of the storage contents of this account, and is empty by default.
  • #26: https://youtu.be/mCzyDLanA7s Elliptic Curve Digital Signature Algorithm
  • #27: Any kind of cost that happens in Ethereum gets translated to gas. Similarly to how in bitcoin fees get translated in some amount of bitcoin per transaction byte, same applies here Imposing fees prevents users from overtaxing the network. Ethereum is a Turing complete language. (In short, a Turing machine is a machine that can simulate any computer algorithm (for those not familiar with Turing machines, check out this and this). This allows for loops and makes Ethereum susceptible to the halting problem, a problem in which you cannot determine whether or not a program will run infinitely. If there were no fees, a malicious actor could easily try to disrupt the network by executing an infinite loop within a transaction, without any repercussions. Thus, fees protect the network from deliberate attacks. https://medium.com/@preethikasireddy/how-does-ethereum-work-anyway-22d1df506369
  • #31: Demo with Jaxx and Metamask What you need is th eprivate key, because this is what allows you to open … Οπως στις τραπεζικες θυριδες, τα λεφτα ειναι παντα εκει, ωστοσο χρειαζεσαι το κλειδι για να τα μετακινήσεις
  • #33: Programming and interacting with smart contracts