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

ODP
CBGTBT - Part 4 - Mining
ODP
CBGTBT - Part 6 - Transactions 102
ODP
CBGTBT - Part 3 - Transactions 101
ODP
CBGTBT - Part 2 - Blockchains 101
PPTX
Intro into blockchain
PPTX
Build your own block chain
PPTX
How to Create AltCoin(Alternative Cryptocurrency)?
ODP
Intro to Blockchain - And, by the way, what the heck is proof-of-work?
CBGTBT - Part 4 - Mining
CBGTBT - Part 6 - Transactions 102
CBGTBT - Part 3 - Transactions 101
CBGTBT - Part 2 - Blockchains 101
Intro into blockchain
Build your own block chain
How to Create AltCoin(Alternative Cryptocurrency)?
Intro to Blockchain - And, by the way, what the heck is proof-of-work?

What's hot (20)

PDF
Metadata in the Blockchain: The OP_RETURN Explosion
PDF
Information security in private blockchains
PDF
PDF
gething started - ethereum & using the geth golang client
PPTX
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
PDF
Bitcoin, Banking and the Blockchain
PDF
BCS BISSG Introduction to Blockchain
PDF
Intro to Blockchain Slides
PPTX
Introduction to Blockchain and Ethereum
PPTX
Altcoins
PPTX
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
PDF
Lightning Network
PDF
Introduction to blockchain and cryptocurrency technologies
PDF
Sidechains Presentation
PDF
Blockchain bootcamp for boards
PDF
Girl Develop It - Intro To Blockchain And Cryptocurrencies
PPTX
A quick introduction to Consensus Models
PDF
Ethereum VM and DSLs for Smart Contracts (updated on May 12th 2015)
PDF
Sidechain talk
PDF
Boolberry reduces blockchain bloat
Metadata in the Blockchain: The OP_RETURN Explosion
Information security in private blockchains
gething started - ethereum & using the geth golang client
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
Bitcoin, Banking and the Blockchain
BCS BISSG Introduction to Blockchain
Intro to Blockchain Slides
Introduction to Blockchain and Ethereum
Altcoins
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
Lightning Network
Introduction to blockchain and cryptocurrency technologies
Sidechains Presentation
Blockchain bootcamp for boards
Girl Develop It - Intro To Blockchain And Cryptocurrencies
A quick introduction to Consensus Models
Ethereum VM and DSLs for Smart Contracts (updated on May 12th 2015)
Sidechain talk
Boolberry reduces blockchain bloat
Ad

Viewers also liked (20)

ODP
CBGTBT - Part 1 - Workshop introduction & primer
PPTX
Blockchain: The Information Technology of the Future
PDF
Blockchain: Developer Perspective
PDF
Stem Cell Case Study By Dr. Bennett
PPTX
Blockchain Consensus Protocols
PPTX
Siliguri Quiz Club, Confluence 2017 by Soumik Choudhury
PDF
Microsoft Office Excel 2007 Top 100 Simplified Tips And Tricks
PPTX
Bitcoin
PPTX
Ppt 2007 tutorial complete
PPTX
Functions and formulas of ms excel
PPTX
Siliguri Quiz Club, Confluence 2017 by Adwitiya Maitry
PPTX
State of Bitcoin and Blockchain 2016
PDF
How does a blockchain work?
KEY
Introduction to bitcoin
PDF
Blockchain demystification
PPTX
MS EXCEL PPT PRESENTATION
PDF
Bitcoin: The Internet of Money
CBGTBT - Part 1 - Workshop introduction & primer
Blockchain: The Information Technology of the Future
Blockchain: Developer Perspective
Stem Cell Case Study By Dr. Bennett
Blockchain Consensus Protocols
Siliguri Quiz Club, Confluence 2017 by Soumik Choudhury
Microsoft Office Excel 2007 Top 100 Simplified Tips And Tricks
Bitcoin
Ppt 2007 tutorial complete
Functions and formulas of ms excel
Siliguri Quiz Club, Confluence 2017 by Adwitiya Maitry
State of Bitcoin and Blockchain 2016
How does a blockchain work?
Introduction to bitcoin
Blockchain demystification
MS EXCEL PPT PRESENTATION
Bitcoin: The Internet of Money
Ad

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

PDF
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and concepts
PPTX
Introduction to Blockchain & development
PPTX
IEEE ICDM 2018 Tutorial on Blockchain Data Analytics
PPTX
Blockchain 101 - public, tokenized blockchains
PPTX
The curious case of Blockchain Technology
PDF
Blockchain overview, use cases, implementations and challenges
PDF
Introduction to Blockchain
PPTX
block chain.pptx
PDF
Introduction-to-Blockchain.pdf
PDF
Upgrading the Bitcoin protocol - Simone Bronzini - Codemotion Rome 2018
PPTX
Blockchain
PPTX
Blockchain Technology
PDF
Understanding blockchains
PDF
Real world blockchains
PDF
Demystifying blockchains
PPTX
Blockchain and bitcoin fundamentals (usages and applications)
PPTX
Blockchain Blockchain Blockchain Lec 1.pptx
PDF
Blockchain
PPTX
Blockchain in 10 slides
PPTX
BlockchainConf.tech - Build a private blockchain workshop
Blockchain, Hyperledger, DeFi, Web 3.0 - understanding and concepts
Introduction to Blockchain & development
IEEE ICDM 2018 Tutorial on Blockchain Data Analytics
Blockchain 101 - public, tokenized blockchains
The curious case of Blockchain Technology
Blockchain overview, use cases, implementations and challenges
Introduction to Blockchain
block chain.pptx
Introduction-to-Blockchain.pdf
Upgrading the Bitcoin protocol - Simone Bronzini - Codemotion Rome 2018
Blockchain
Blockchain Technology
Understanding blockchains
Real world blockchains
Demystifying blockchains
Blockchain and bitcoin fundamentals (usages and applications)
Blockchain Blockchain Blockchain Lec 1.pptx
Blockchain
Blockchain in 10 slides
BlockchainConf.tech - Build a private blockchain workshop

Recently uploaded (20)

PDF
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
PPTX
presentation_pfe-universite-molay-seltan.pptx
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PPTX
Introduction to Information and Communication Technology
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PPTX
Database Information System - Management Information System
PPTX
newyork.pptxirantrafgshenepalchinachinane
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PPTX
Digital Literacy And Online Safety on internet
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPT
Ethics in Information System - Management Information System
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
DOCX
Unit-3 cyber security network security of internet system
PPTX
Internet___Basics___Styled_ presentation
PPTX
artificial intelligence overview of it and more
PPTX
Funds Management Learning Material for Beg
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
presentation_pfe-universite-molay-seltan.pptx
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
Module 1 - Cyber Law and Ethics 101.pptx
Introduction to Information and Communication Technology
Design_with_Watersergyerge45hrbgre4top (1).ppt
Database Information System - Management Information System
newyork.pptxirantrafgshenepalchinachinane
Slides PPTX World Game (s) Eco Economic Epochs.pptx
Digital Literacy And Online Safety on internet
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
SASE Traffic Flow - ZTNA Connector-1.pdf
Job_Card_System_Styled_lorem_ipsum_.pptx
Ethics in Information System - Management Information System
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
An introduction to the IFRS (ISSB) Stndards.pdf
Unit-3 cyber security network security of internet system
Internet___Basics___Styled_ presentation
artificial intelligence overview of it and more
Funds Management Learning Material for Beg

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 adam@neuroware.io
  • 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