SlideShare une entreprise Scribd logo
1  sur  19
Blockchains 101
@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 2nd
of 6.
Questions? Comments? @MrAdamGiles adam@neuroware.io
Blockchains 101
Refresher
➔ We know that the blockchain records Transactions
➔ Transactions are time dependent, happen in an order
➔ Once you’ve spent coins, you can’t go back in time and spend again
➔ Blockchains record transactions in a time domain
Blockchains 101
Blockchain Rules
➔ Once something has happened, and we create a record of that, the
fact that it happened never changes
➔ Data written into a blockchain is a historical record and is immutable
➔ Blockchains have to prove that they haven’t been tampered with
➔ Everyone running that blockchain has to agree on the data stored in it
Blockchains from First Principles
Blockchains 101
Blockchains
Transactions are grouped together into a Block.
The Chain is multiple Blocks, linked together.
0 21 43 5
Blockchains 101
Blockchains
0 21 43 5
➔ Blocks are numbered in ascending order, 0 is first/oldest
➔ The number is the ‘height’ of the block
➔ Arrows only go from newer to older blocks - a block only directly links to
the one immediately before it
➔ Once a block is stored, it’s read-only (which is why it doesn’t link to the
ones after it - that would require you to update it)
Blockchains 101
Blockchains
0 21 43 5
➔ Blocks store data, in Bitcoin, it’s the transactions, but it could be any
digital data
➔ Blocks are created periodically (on average, 10mins for Bitcoin) by a
process called ‘mining’
➔ A block represents a set of events that have occurred over a particular
time frame (usually, since the previous block)
Blockchains 101
Blockchains
0 21 43 5
➔ Blocks aren't identified by their height, but by their id
➔ Block id is the hash of the data in the block
0=000000000019D6689C085AE165831E934FF763AE46A2A6C172B3F1B60A8CE26F
1=00000000839A8E6886AB5951D76F411475428AFC90947EE320161BBF18EB6048
2=000000006A625F06636B8BB6AC7B960A8D03705D1ACE08B1A19DA3FDCC99DDBD
➔ Block id is a digital fingerprint of that block
Blockchains 101
What’s in a block?
➔ A ‘magic number’ (0xD9B4BEF9) to show it’s a Bitcoin block
➔ A size number to specify how much data is coming next
➔ Some metadata:
◆ A version number of the block format
◆ A link to the previous block that came immediately before it
◆ Merkle root of all the transactions in the block
◆ Timestamp of when the block was created
◆ Mining difficulty (more about this later)
◆ Nonce for proof-of-work (more about this later)
➔ All the transactions that were recorded in this block
Blockchains 101
What’s in a block?
Blockchains 101
Tamper Evident
➔ Blocks are identified by their id (hash of the metadata)
➔ Metadata in turn, contains Merkel Root of Transaction data
➔ Change the metadata, block id will change - broken chain
➔ Change the details of a transaction, the merkle root will change, which
in turn changes the metadata hash, which will change the block id
➔ Hashing data once is really quick, so easy to check the validity of each
block as you go along
Blockchains 101
Why not a database?
Blockchains solve specific problems:
➔ Fully distributed - highly fault tolerant
➔ No centralised authority
➔ 3rd party trust without trust
➔ Low barrier to entry - computer + internet = win
➔ Instant, Global transactional capability
➔ No double spending
➔ Very low transaction costs
Databases can’t do this yet
Blockchains 101
Blockchains as Distributed Databases
In Bitcoin, everyone has a copy of the Blockchain
➔ Everyone running the Bitcoin client is part of the network
➔ New blocks are broadcast to the network
➔ Everyone updates their local copy of the blockchain
➔ If you’re behind the current height of the chain, you can ask other
nodes for copies of the Blocks needed to catch-up
➔ If everyone has a copy of the blockchain, when queried, everyone
gets the same answer
➔ Blockchains are a bit like read-only distributed databases
Blockchains 101
How to Get Started
Choose the blockchain you want to work with:
➔ Download the reference client from their website
➔ Wait for the blockchain to download
➔ Obtain some coins buy/earn some
➔ Start transacting
Blockchains 101
How to Get Started
There are two types of client software:
Lightweight Client
Doesn't download the entire blockchain, connects to other nodes and
only collects information on transactions to it's own addresses
Full/Core Client
Runs as a full node on the network, downloads entire blockchain
Any Questions?

Contenu connexe

Tendances

Tendances (20)

Bitcoin, Banking and the Blockchain
Bitcoin, Banking and the BlockchainBitcoin, Banking and the Blockchain
Bitcoin, Banking and the Blockchain
 
CBGTBT - Part 1 - Workshop introduction & primer
CBGTBT - Part 1 - Workshop introduction & primerCBGTBT - Part 1 - Workshop introduction & primer
CBGTBT - Part 1 - Workshop introduction & primer
 
Boolberry reduces blockchain bloat
Boolberry reduces blockchain bloatBoolberry reduces blockchain bloat
Boolberry reduces blockchain bloat
 
Metadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN ExplosionMetadata in the Blockchain: The OP_RETURN Explosion
Metadata in the Blockchain: The OP_RETURN Explosion
 
Blockchain, bitcoin
Blockchain, bitcoinBlockchain, bitcoin
Blockchain, bitcoin
 
Blockchain overview, use cases, implementations and challenges
Blockchain overview, use cases, implementations and challengesBlockchain overview, use cases, implementations and challenges
Blockchain overview, use cases, implementations and challenges
 
Pi network
Pi networkPi network
Pi network
 
create your own cryptocurrency
create your own cryptocurrencycreate your own cryptocurrency
create your own cryptocurrency
 
Intro to Blockchain Slides
Intro to Blockchain SlidesIntro to Blockchain Slides
Intro to Blockchain Slides
 
Blockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business ApplicationsBlockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business Applications
 
Sidechains Presentation
Sidechains PresentationSidechains Presentation
Sidechains Presentation
 
Information security in private blockchains
Information security in private blockchainsInformation security in private blockchains
Information security in private blockchains
 
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
以比特幣為例的區塊鏈技術介紹 ( Intro to Blockchain using Bitcoin as an example)
 
Sidechain talk
Sidechain talkSidechain talk
Sidechain talk
 
Blockchain
BlockchainBlockchain
Blockchain
 
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
 
Intro to smart contract on blockchain en
Intro to smart contract on blockchain enIntro to smart contract on blockchain en
Intro to smart contract on blockchain en
 
Blockchains 101
Blockchains 101Blockchains 101
Blockchains 101
 
Introduction to blockchain and cryptocurrency technologies
Introduction to blockchain and cryptocurrency technologiesIntroduction to blockchain and cryptocurrency technologies
Introduction to blockchain and cryptocurrency technologies
 
Understanding private blockchains
Understanding private blockchainsUnderstanding private blockchains
Understanding private blockchains
 

En vedette

Microsoft Office Excel 2007 Top 100 Simplified Tips And Tricks
Microsoft Office Excel 2007 Top 100 Simplified Tips And TricksMicrosoft Office Excel 2007 Top 100 Simplified Tips And Tricks
Microsoft Office Excel 2007 Top 100 Simplified Tips And Tricks
DQue QQ
 

En vedette (19)

Blockchain 101
Blockchain 101Blockchain 101
Blockchain 101
 
Stem Cell Case Study By Dr. Bennett
Stem Cell Case Study By Dr. BennettStem Cell Case Study By Dr. Bennett
Stem Cell Case Study By Dr. Bennett
 
PRP Biologics 3
PRP Biologics 3PRP Biologics 3
PRP Biologics 3
 
PRP Biologics 3
PRP Biologics 3PRP Biologics 3
PRP Biologics 3
 
PRP Biologics 2
PRP Biologics 2PRP Biologics 2
PRP Biologics 2
 
Microsoft Office Excel 2007 Top 100 Simplified Tips And Tricks
Microsoft Office Excel 2007 Top 100 Simplified Tips And TricksMicrosoft Office Excel 2007 Top 100 Simplified Tips And Tricks
Microsoft Office Excel 2007 Top 100 Simplified Tips And Tricks
 
Siliguri Quiz Club, Confluence 2017 by Soumik Choudhury
Siliguri Quiz Club, Confluence 2017 by Soumik ChoudhurySiliguri Quiz Club, Confluence 2017 by Soumik Choudhury
Siliguri Quiz Club, Confluence 2017 by Soumik Choudhury
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
Ppt 2007 tutorial complete
Ppt 2007 tutorial completePpt 2007 tutorial complete
Ppt 2007 tutorial complete
 
Functions and formulas of ms excel
Functions and formulas of ms excelFunctions and formulas of ms excel
Functions and formulas of ms excel
 
Siliguri Quiz Club, Confluence 2017 by Adwitiya Maitry
Siliguri Quiz Club, Confluence 2017 by Adwitiya MaitrySiliguri Quiz Club, Confluence 2017 by Adwitiya Maitry
Siliguri Quiz Club, Confluence 2017 by Adwitiya Maitry
 
How does a blockchain work?
How does a blockchain work?How does a blockchain work?
How does a blockchain work?
 
MS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATIONMS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATION
 
Blockchain demystification
Blockchain demystificationBlockchain demystification
Blockchain demystification
 
Blockchain: the technologies behind Bitcoin, Ethereum, ICO, and more
Blockchain: the technologies behind Bitcoin, Ethereum, ICO, and moreBlockchain: the technologies behind Bitcoin, Ethereum, ICO, and more
Blockchain: the technologies behind Bitcoin, Ethereum, ICO, and more
 
ISTA 2017 - Blockchain, beyond Bitcoin
ISTA 2017 - Blockchain, beyond BitcoinISTA 2017 - Blockchain, beyond Bitcoin
ISTA 2017 - Blockchain, beyond Bitcoin
 
Block chain 101 what it is, why it matters
Block chain 101  what it is, why it mattersBlock chain 101  what it is, why it matters
Block chain 101 what it is, why it matters
 
Blockchain: The Information Technology of the Future
Blockchain: The Information Technology of the FutureBlockchain: The Information Technology of the Future
Blockchain: The Information Technology of the Future
 
Bitcoin and Blockchain Technology Explained: Not just Cryptocurrencies, Econo...
Bitcoin and Blockchain Technology Explained: Not just Cryptocurrencies, Econo...Bitcoin and Blockchain Technology Explained: Not just Cryptocurrencies, Econo...
Bitcoin and Blockchain Technology Explained: Not just Cryptocurrencies, Econo...
 

Similaire à CBGTBT - Part 2 - Blockchains 101

C13_blockchain introduction public (1).pptx
C13_blockchain introduction public (1).pptxC13_blockchain introduction public (1).pptx
C13_blockchain introduction public (1).pptx
haifaazka
 

Similaire à CBGTBT - Part 2 - Blockchains 101 (20)

A Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval CaprazA Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval Capraz
 
Blockchain
BlockchainBlockchain
Blockchain
 
Block chain
Block chainBlock chain
Block chain
 
C13_blockchain introduction public (1).pptx
C13_blockchain introduction public (1).pptxC13_blockchain introduction public (1).pptx
C13_blockchain introduction public (1).pptx
 
blockchain-introduction-public.pptx
blockchain-introduction-public.pptxblockchain-introduction-public.pptx
blockchain-introduction-public.pptx
 
Blockchain and bitcoin
Blockchain and bitcoinBlockchain and bitcoin
Blockchain and bitcoin
 
The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin
 
dfgsdjghkjsdhfg.pptx
dfgsdjghkjsdhfg.pptxdfgsdjghkjsdhfg.pptx
dfgsdjghkjsdhfg.pptx
 
Blockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
Blockchain Technology | Bitcoin | Ethereum Coin | CryptocurrencyBlockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
Blockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
 
Blockchain Explained
Blockchain Explained Blockchain Explained
Blockchain Explained
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchains
 
Introduction to Blockchain
Introduction to Blockchain Introduction to Blockchain
Introduction to Blockchain
 
Mock javameetup v1
Mock javameetup v1Mock javameetup v1
Mock javameetup v1
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
 
Blockchain
BlockchainBlockchain
Blockchain
 
Ppt on blockchain technology
Ppt on blockchain technologyPpt on blockchain technology
Ppt on blockchain technology
 
Node.js Blockchain Implementation
Node.js Blockchain ImplementationNode.js Blockchain Implementation
Node.js Blockchain Implementation
 
Introduction to Blockchain Web3 Session
Introduction to Blockchain Web3 SessionIntroduction to Blockchain Web3 Session
Introduction to Blockchain Web3 Session
 
Public blockchains and municipalities en v1.0_hc
Public blockchains and municipalities en v1.0_hcPublic blockchains and municipalities en v1.0_hc
Public blockchains and municipalities en v1.0_hc
 
blockchain.pptx
blockchain.pptxblockchain.pptx
blockchain.pptx
 

Dernier

Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Monica Sydney
 
PowerDirector Explination Process...pptx
PowerDirector Explination Process...pptxPowerDirector Explination Process...pptx
PowerDirector Explination Process...pptx
galaxypingy
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
ydyuyu
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Monica Sydney
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
ayvbos
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
gajnagarg
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
ayvbos
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Monica Sydney
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
pxcywzqs
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
ydyuyu
 

Dernier (20)

Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
 
PowerDirector Explination Process...pptx
PowerDirector Explination Process...pptxPowerDirector Explination Process...pptx
PowerDirector Explination Process...pptx
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
 
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac RoomVip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
Microsoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftMicrosoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck Microsoft
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
 
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
 

CBGTBT - Part 2 - Blockchains 101

  • 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 2nd of 6. Questions? Comments? @MrAdamGiles adam@neuroware.io
  • 3. Blockchains 101 Refresher ➔ We know that the blockchain records Transactions ➔ Transactions are time dependent, happen in an order ➔ Once you’ve spent coins, you can’t go back in time and spend again ➔ Blockchains record transactions in a time domain
  • 4. Blockchains 101 Blockchain Rules ➔ Once something has happened, and we create a record of that, the fact that it happened never changes ➔ Data written into a blockchain is a historical record and is immutable ➔ Blockchains have to prove that they haven’t been tampered with ➔ Everyone running that blockchain has to agree on the data stored in it
  • 6. Blockchains 101 Blockchains Transactions are grouped together into a Block. The Chain is multiple Blocks, linked together. 0 21 43 5
  • 7. Blockchains 101 Blockchains 0 21 43 5 ➔ Blocks are numbered in ascending order, 0 is first/oldest ➔ The number is the ‘height’ of the block ➔ Arrows only go from newer to older blocks - a block only directly links to the one immediately before it ➔ Once a block is stored, it’s read-only (which is why it doesn’t link to the ones after it - that would require you to update it)
  • 8. Blockchains 101 Blockchains 0 21 43 5 ➔ Blocks store data, in Bitcoin, it’s the transactions, but it could be any digital data ➔ Blocks are created periodically (on average, 10mins for Bitcoin) by a process called ‘mining’ ➔ A block represents a set of events that have occurred over a particular time frame (usually, since the previous block)
  • 9. Blockchains 101 Blockchains 0 21 43 5 ➔ Blocks aren't identified by their height, but by their id ➔ Block id is the hash of the data in the block 0=000000000019D6689C085AE165831E934FF763AE46A2A6C172B3F1B60A8CE26F 1=00000000839A8E6886AB5951D76F411475428AFC90947EE320161BBF18EB6048 2=000000006A625F06636B8BB6AC7B960A8D03705D1ACE08B1A19DA3FDCC99DDBD ➔ Block id is a digital fingerprint of that block
  • 10. Blockchains 101 What’s in a block? ➔ A ‘magic number’ (0xD9B4BEF9) to show it’s a Bitcoin block ➔ A size number to specify how much data is coming next ➔ Some metadata: ◆ A version number of the block format ◆ A link to the previous block that came immediately before it ◆ Merkle root of all the transactions in the block ◆ Timestamp of when the block was created ◆ Mining difficulty (more about this later) ◆ Nonce for proof-of-work (more about this later) ➔ All the transactions that were recorded in this block
  • 12. Blockchains 101 Tamper Evident ➔ Blocks are identified by their id (hash of the metadata) ➔ Metadata in turn, contains Merkel Root of Transaction data ➔ Change the metadata, block id will change - broken chain ➔ Change the details of a transaction, the merkle root will change, which in turn changes the metadata hash, which will change the block id ➔ Hashing data once is really quick, so easy to check the validity of each block as you go along
  • 13. Blockchains 101 Why not a database? Blockchains solve specific problems: ➔ Fully distributed - highly fault tolerant ➔ No centralised authority ➔ 3rd party trust without trust ➔ Low barrier to entry - computer + internet = win ➔ Instant, Global transactional capability ➔ No double spending ➔ Very low transaction costs Databases can’t do this yet
  • 14. Blockchains 101 Blockchains as Distributed Databases In Bitcoin, everyone has a copy of the Blockchain ➔ Everyone running the Bitcoin client is part of the network ➔ New blocks are broadcast to the network ➔ Everyone updates their local copy of the blockchain ➔ If you’re behind the current height of the chain, you can ask other nodes for copies of the Blocks needed to catch-up ➔ If everyone has a copy of the blockchain, when queried, everyone gets the same answer ➔ Blockchains are a bit like read-only distributed databases
  • 15. Blockchains 101 How to Get Started Choose the blockchain you want to work with: ➔ Download the reference client from their website ➔ Wait for the blockchain to download ➔ Obtain some coins buy/earn some ➔ Start transacting
  • 16. Blockchains 101 How to Get Started There are two types of client software: Lightweight Client Doesn't download the entire blockchain, connects to other nodes and only collects information on transactions to it's own addresses Full/Core Client Runs as a full node on the network, downloads entire blockchain
  • 17.
  • 18.

Notes de l'éditeur

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