SlideShare a Scribd company logo
Blockchains 102
@blockstrap
#StartingBlock2015
Introduction & Primer
First, some context
These slides are from the #StartingBlock2015 tour by @blockstrap.
6 European countries in 8 days – (Istanbul, Amsterdam, Barcelona, Prague, Berlin
& London). We met lots of great people, answered lots of great questions and had
a great time. We look forward to meeting many of them again in the near future.
These slides might only make perfect sense if you were at the talks and can
remember all the additional points we made whilst discussing the tech.
This deck is 5th
of 6.
Questions? Comments? @MrAdamGiles adam@neuroware.io
Blockchains 102
Refresher
➔ Blocks store records of transactions
➔ Ordered in time, immutable historical records
➔ Measured in block ‘height’ identified by id (hash of metadata)
➔ Tamper evident through hash of hashes, each block contains hash
from the previous block
➔ Blocks are created by Miners
➔ New blocks are added to the chain
Blockchains 102
But...
Like the blockchain miners are distributed, so who gets to make the block?
Blockchains 102
Simultaneously Broadcasting Blocks
➔ Miners are distributed and are in competition with each other.
➔ First to publish/broadcast a block wins.
➔ At the top of the chain multiple miners could create a block at roughly the
same time
➔ Blocks take time to propagate their way round the network
➔ Different nodes will get different blocks at different times
➔ The network needs a way to decide which block it will use as it’s official
record of what happened
➔ Mining doesn’t stop while all this is figured out
Blockchains 102
Recap: How To Build A Block
1. Receive the transaction broadcast
2. Verify the crypto in the transaction
3. Add it to the unconfirmed pool
4. Do some hard maths on all the transactions in the pool
5. Broadcast the Block to the network
6. The Block is added to the blockchain
●
Pretend the green block is at height 0
●
All miners try to solve the next one…
●
A miner solves one at height 1
●
But so does another miner. We don’t know which is official.
●
Block 1a may contain different transactions from 1b.
●
We don’t know which is the accepted block yet
●
So, mining continues, with half the network working on 2a, half on 2b
●
Good idea not to treat any transactions as final yet
●
A miner finds 2b
●
All miners working on 2a stop work, they must work at the highest height
●
All miners work on finding a block at height 3
●
Transactions that were only in 1a, are now back to not-being-in-a-block
●
A miner solves one and broadcasts to the network
●
Other miners abandon their work and start trying to solve a block at height 4
●
A miner solves one at height 4, all is well with the world
●
All miners try to solve a block at height 5
●
But, while this is sorting itself out, another miner solves a block at height 4
●
We now have a fork at height 4.
●
Half the miners will try to solve 5a, half will try 5b
●
We have a race condition, lets pretend that both forks of the chain solve
another block at the same time
●
The miners working on 5b solve a block first. All miners stop what they’re
working on, and try to solve for height 7
●
Blocks 4a and 5a are now accepted as the longest chain
●
Smooth sailing from here on out
Implications
Blockchains 102
➔ Transactions take time to ‘confirm’
➔ Each transaction, once it’s in an accepted block has a height
➔ Each increase in blockchain height is called a confirmation
➔ A transaction 5 blocks below the top of the chain is said to have ‘6
confirmations’
➔ The merchant can decide how many confirmations is sensible to
wait for (cup of coffee, perhaps no confirmations; for a meal, 1 or 2
confirmations; for a restaurant at least 6!)
➔ Current default is to wait for 6 confirmations for anything of value
Other Types Of Fork
Blockchains 102
➔ Upgrades to the protocol can cause problems – but can be managed
➔ Blocks that are created have a version number
➔ New blocks using the new protocol use a different version number
➔ If the upgrade is backwardly compatible, it's a soft fork
➔ If the upgrade isn't backwardly compatible, it's a hard fork
➔ Hard forks are much harder and we try to avoid them
Any Questions?

More Related Content

What's hot (20)

PDF
Metadata in the Blockchain: The OP_RETURN Explosion
Coin Sciences Ltd
 
PDF
Information security in private blockchains
Coin Sciences Ltd
 
PDF
Pi network
VamsikrishnaVemavara
 
PDF
gething started - ethereum & using the geth golang client
Sathish VJ
 
PPTX
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
Nicholas Lin
 
PDF
Bitcoin, Banking and the Blockchain
seancarmody
 
PDF
BCS BISSG Introduction to Blockchain
Gary Nuttall MBCS CITP
 
PDF
Intro to Blockchain Slides
Shannon Wells
 
PPTX
Introduction to Blockchain and Ethereum
Georgios Konstantopoulos
 
PPTX
Altcoins
sameezahur
 
PPTX
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
David Evans
 
PDF
Lightning Network
Felix Crisan
 
PDF
Introduction to blockchain and cryptocurrency technologies
Paweł Wacławczyk
 
PDF
Sidechains Presentation
Brian Fabian Crain
 
PDF
Blockchain bootcamp for boards
Jason Liew 廖颂成
 
PDF
Girl Develop It - Intro To Blockchain And Cryptocurrencies
magnachef
 
PPTX
A quick introduction to Consensus Models
Oded Noam
 
PDF
Ethereum VM and DSLs for Smart Contracts (updated on May 12th 2015)
Zvi Avraham
 
PDF
Sidechain talk
jojva
 
PDF
Boolberry reduces blockchain bloat
boolberry
 
Metadata in the Blockchain: The OP_RETURN Explosion
Coin Sciences Ltd
 
Information security in private blockchains
Coin Sciences Ltd
 
gething started - ethereum & using the geth golang client
Sathish VJ
 
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
Nicholas Lin
 
Bitcoin, Banking and the Blockchain
seancarmody
 
BCS BISSG Introduction to Blockchain
Gary Nuttall MBCS CITP
 
Intro to Blockchain Slides
Shannon Wells
 
Introduction to Blockchain and Ethereum
Georgios Konstantopoulos
 
Altcoins
sameezahur
 
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
David Evans
 
Lightning Network
Felix Crisan
 
Introduction to blockchain and cryptocurrency technologies
Paweł Wacławczyk
 
Sidechains Presentation
Brian Fabian Crain
 
Blockchain bootcamp for boards
Jason Liew 廖颂成
 
Girl Develop It - Intro To Blockchain And Cryptocurrencies
magnachef
 
A quick introduction to Consensus Models
Oded Noam
 
Ethereum VM and DSLs for Smart Contracts (updated on May 12th 2015)
Zvi Avraham
 
Sidechain talk
jojva
 
Boolberry reduces blockchain bloat
boolberry
 

Viewers also liked (20)

ODP
CBGTBT - Part 1 - Workshop introduction & primer
Blockstrap.com
 
PPTX
Blockchain: The Information Technology of the Future
Melanie Swan
 
PDF
Blockchain: Developer Perspective
Artur Skowroński
 
PDF
Stem Cell Case Study By Dr. Bennett
Bennett Orthopedics and Sportsmedicine
 
PPTX
Blockchain Consensus Protocols
Melanie Swan
 
PPTX
Siliguri Quiz Club, Confluence 2017 by Soumik Choudhury
Siliguri Quiz Club
 
PDF
Microsoft Office Excel 2007 Top 100 Simplified Tips And Tricks
DQue QQ
 
PPTX
Bitcoin
Bellaj Badr
 
PPTX
Ppt 2007 tutorial complete
Master Jhay
 
PPTX
Functions and formulas of ms excel
madhuparna bhowmik
 
PPTX
Siliguri Quiz Club, Confluence 2017 by Adwitiya Maitry
Siliguri Quiz Club
 
PPTX
State of Bitcoin and Blockchain 2016
CoinDesk
 
PDF
How does a blockchain work?
Deloitte UK
 
KEY
Introduction to bitcoin
Wolf McNally
 
PDF
Blockchain demystification
Bellaj Badr
 
PPTX
MS EXCEL PPT PRESENTATION
Mridul Bansal
 
PDF
Bitcoin: The Internet of Money
winklevosscap
 
CBGTBT - Part 1 - Workshop introduction & primer
Blockstrap.com
 
Blockchain: The Information Technology of the Future
Melanie Swan
 
Blockchain: Developer Perspective
Artur Skowroński
 
Stem Cell Case Study By Dr. Bennett
Bennett Orthopedics and Sportsmedicine
 
Blockchain Consensus Protocols
Melanie Swan
 
Siliguri Quiz Club, Confluence 2017 by Soumik Choudhury
Siliguri Quiz Club
 
Microsoft Office Excel 2007 Top 100 Simplified Tips And Tricks
DQue QQ
 
Bitcoin
Bellaj Badr
 
Ppt 2007 tutorial complete
Master Jhay
 
Functions and formulas of ms excel
madhuparna bhowmik
 
Siliguri Quiz Club, Confluence 2017 by Adwitiya Maitry
Siliguri Quiz Club
 
State of Bitcoin and Blockchain 2016
CoinDesk
 
How does a blockchain work?
Deloitte UK
 
Introduction to bitcoin
Wolf McNally
 
Blockchain demystification
Bellaj Badr
 
MS EXCEL PPT PRESENTATION
Mridul Bansal
 
Bitcoin: The Internet of Money
winklevosscap
 
Ad

Similar to CBGTBT - Part 5 - Blockchains 102 (20)

PDF
Task of Bitcoin Miners, a module for Bitcoin .pdf
aandk091
 
PDF
Bitcoin Mining in decentralized blockchain networks
sendhilkumarks
 
PPTX
A Quick Start To Blockchain by Seval Capraz
Seval Çapraz
 
PDF
Introduction to Bitcoin for programmers
Wojciech Langiewicz
 
PDF
Blockchain overview, use cases, implementations and challenges
Sébastien Tandel
 
PDF
Blockchain technology
Abhilash Kumar Aryavanshi
 
PPTX
01 what is blockchain
BastianBlankenburg
 
PDF
Blockchain for Beginners
Cyber Security Alliance
 
PPTX
Blockchain presentation
KouTon
 
PDF
Blockchain part 2
Sanjay Basu
 
PPTX
Node.js Blockchain Implementation
GlobalLogic Ukraine
 
PPTX
Introduction to bit coin
Vivian S. Zhang
 
PPTX
How Does Blockchain Work?
Blogs Crypto
 
PDF
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and concepts
keithfernandez19
 
PPTX
Introduction to Blockchain
Aalok Singh
 
PPTX
Bitcoin MOOC Lecture 2.pptx
Oluseyi Akindeinde
 
PPTX
block chain.pptx
Danish Mahmood
 
PPTX
Introduction to Blockchain & development
Abdullah Aziz
 
PDF
Five Thin's Ye May Nah Be Knowin' 'Bout Bitdoubloons
Samson Mow
 
PDF
Cryptocurrency and Blockchain Techonology.pdf
경록 박
 
Task of Bitcoin Miners, a module for Bitcoin .pdf
aandk091
 
Bitcoin Mining in decentralized blockchain networks
sendhilkumarks
 
A Quick Start To Blockchain by Seval Capraz
Seval Çapraz
 
Introduction to Bitcoin for programmers
Wojciech Langiewicz
 
Blockchain overview, use cases, implementations and challenges
Sébastien Tandel
 
Blockchain technology
Abhilash Kumar Aryavanshi
 
01 what is blockchain
BastianBlankenburg
 
Blockchain for Beginners
Cyber Security Alliance
 
Blockchain presentation
KouTon
 
Blockchain part 2
Sanjay Basu
 
Node.js Blockchain Implementation
GlobalLogic Ukraine
 
Introduction to bit coin
Vivian S. Zhang
 
How Does Blockchain Work?
Blogs Crypto
 
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and concepts
keithfernandez19
 
Introduction to Blockchain
Aalok Singh
 
Bitcoin MOOC Lecture 2.pptx
Oluseyi Akindeinde
 
block chain.pptx
Danish Mahmood
 
Introduction to Blockchain & development
Abdullah Aziz
 
Five Thin's Ye May Nah Be Knowin' 'Bout Bitdoubloons
Samson Mow
 
Cryptocurrency and Blockchain Techonology.pdf
경록 박
 
Ad

Recently uploaded (20)

PPTX
Blue and Dark Blue Modern Technology Presentation.pptx
ap177979
 
PDF
UI/UX Developer Guide: Tools, Trends, and Tips for 2025
Penguin peak
 
PPTX
Slides pptx: World Game's Eco Economic Epochs.pptx
Steven McGee
 
PPTX
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
PDF
GEO Strategy 2025: Complete Presentation Deck for AI-Powered Customer Acquisi...
Zam Man
 
PPT
Introduction to dns domain name syst.ppt
MUHAMMADKAVISHSHABAN
 
PPTX
MSadfadsfafdadfccadradfT_Presentation.pptx
pahalaedward2
 
PPTX
AI at Your Side: Boost Impact Without Losing the Human Touch (SXSW 2026 Meet ...
maytaldahan
 
PPTX
The Latest Scam Shocking the USA in 2025.pptx
onlinescamreport4
 
PPTX
Pengenalan perangkat Jaringan komputer pada teknik jaringan komputer dan tele...
Prayudha3
 
PPTX
Different Generation Of Computers .pptx
divcoder9507
 
PPTX
How tech helps people in the modern era.
upadhyayaryan154
 
PDF
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
PPTX
Birth-after-Previous-Caesarean-Birth (1).pptx
fermann1
 
PPTX
Perkembangan Perangkat jaringan komputer dan telekomunikasi 3.pptx
Prayudha3
 
PPTX
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
PDF
How Much GB RAM Do You Need for Coding? 5 Powerful Reasons 8GB Is More Than E...
freeshopbudget
 
PDF
Paper PDF: World Game (s) Great Redesign.pdf
Steven McGee
 
PPTX
The Monk and the Sadhurr and the story of how
BeshoyGirgis2
 
PPTX
Artificial-Intelligence-in-Daily-Life (2).pptx
nidhigoswami335
 
Blue and Dark Blue Modern Technology Presentation.pptx
ap177979
 
UI/UX Developer Guide: Tools, Trends, and Tips for 2025
Penguin peak
 
Slides pptx: World Game's Eco Economic Epochs.pptx
Steven McGee
 
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
GEO Strategy 2025: Complete Presentation Deck for AI-Powered Customer Acquisi...
Zam Man
 
Introduction to dns domain name syst.ppt
MUHAMMADKAVISHSHABAN
 
MSadfadsfafdadfccadradfT_Presentation.pptx
pahalaedward2
 
AI at Your Side: Boost Impact Without Losing the Human Touch (SXSW 2026 Meet ...
maytaldahan
 
The Latest Scam Shocking the USA in 2025.pptx
onlinescamreport4
 
Pengenalan perangkat Jaringan komputer pada teknik jaringan komputer dan tele...
Prayudha3
 
Different Generation Of Computers .pptx
divcoder9507
 
How tech helps people in the modern era.
upadhyayaryan154
 
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
Birth-after-Previous-Caesarean-Birth (1).pptx
fermann1
 
Perkembangan Perangkat jaringan komputer dan telekomunikasi 3.pptx
Prayudha3
 
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
How Much GB RAM Do You Need for Coding? 5 Powerful Reasons 8GB Is More Than E...
freeshopbudget
 
Paper PDF: World Game (s) Great Redesign.pdf
Steven McGee
 
The Monk and the Sadhurr and the story of how
BeshoyGirgis2
 
Artificial-Intelligence-in-Daily-Life (2).pptx
nidhigoswami335
 

CBGTBT - Part 5 - Blockchains 102

  • 2. Introduction & Primer First, some context These slides are from the #StartingBlock2015 tour by @blockstrap. 6 European countries in 8 days – (Istanbul, Amsterdam, Barcelona, Prague, Berlin & London). We met lots of great people, answered lots of great questions and had a great time. We look forward to meeting many of them again in the near future. These slides might only make perfect sense if you were at the talks and can remember all the additional points we made whilst discussing the tech. This deck is 5th of 6. Questions? Comments? @MrAdamGiles [email protected]
  • 3. Blockchains 102 Refresher ➔ Blocks store records of transactions ➔ Ordered in time, immutable historical records ➔ Measured in block ‘height’ identified by id (hash of metadata) ➔ Tamper evident through hash of hashes, each block contains hash from the previous block ➔ Blocks are created by Miners ➔ New blocks are added to the chain
  • 4. Blockchains 102 But... Like the blockchain miners are distributed, so who gets to make the block?
  • 5. Blockchains 102 Simultaneously Broadcasting Blocks ➔ Miners are distributed and are in competition with each other. ➔ First to publish/broadcast a block wins. ➔ At the top of the chain multiple miners could create a block at roughly the same time ➔ Blocks take time to propagate their way round the network ➔ Different nodes will get different blocks at different times ➔ The network needs a way to decide which block it will use as it’s official record of what happened ➔ Mining doesn’t stop while all this is figured out
  • 6. Blockchains 102 Recap: How To Build A Block 1. Receive the transaction broadcast 2. Verify the crypto in the transaction 3. Add it to the unconfirmed pool 4. Do some hard maths on all the transactions in the pool 5. Broadcast the Block to the network 6. The Block is added to the blockchain
  • 7. ● Pretend the green block is at height 0 ● All miners try to solve the next one… ● A miner solves one at height 1
  • 8. ● But so does another miner. We don’t know which is official. ● Block 1a may contain different transactions from 1b. ● We don’t know which is the accepted block yet ● So, mining continues, with half the network working on 2a, half on 2b ● Good idea not to treat any transactions as final yet
  • 9. ● A miner finds 2b ● All miners working on 2a stop work, they must work at the highest height ● All miners work on finding a block at height 3 ● Transactions that were only in 1a, are now back to not-being-in-a-block
  • 10. ● A miner solves one and broadcasts to the network ● Other miners abandon their work and start trying to solve a block at height 4
  • 11. ● A miner solves one at height 4, all is well with the world ● All miners try to solve a block at height 5
  • 12. ● But, while this is sorting itself out, another miner solves a block at height 4 ● We now have a fork at height 4. ● Half the miners will try to solve 5a, half will try 5b
  • 13. ● We have a race condition, lets pretend that both forks of the chain solve another block at the same time
  • 14. ● The miners working on 5b solve a block first. All miners stop what they’re working on, and try to solve for height 7 ● Blocks 4a and 5a are now accepted as the longest chain
  • 15. ● Smooth sailing from here on out
  • 16. Implications Blockchains 102 ➔ Transactions take time to ‘confirm’ ➔ Each transaction, once it’s in an accepted block has a height ➔ Each increase in blockchain height is called a confirmation ➔ A transaction 5 blocks below the top of the chain is said to have ‘6 confirmations’ ➔ The merchant can decide how many confirmations is sensible to wait for (cup of coffee, perhaps no confirmations; for a meal, 1 or 2 confirmations; for a restaurant at least 6!) ➔ Current default is to wait for 6 confirmations for anything of value
  • 17. Other Types Of Fork Blockchains 102 ➔ Upgrades to the protocol can cause problems – but can be managed ➔ Blocks that are created have a version number ➔ New blocks using the new protocol use a different version number ➔ If the upgrade is backwardly compatible, it's a soft fork ➔ If the upgrade isn't backwardly compatible, it's a hard fork ➔ Hard forks are much harder and we try to avoid them

Editor's Notes

  • #3: Assume familiar with software, just not blockchains Bitcoin can be polizing, quickly decends into conversations/arguments about politics, But as software is eating the workd, that's what we'll be focusing on Simplified first , then circle back round and dive deeper Simplifications can be missleading Tell meif too fast/slow