SlideShare a Scribd company logo
1 of 40
Download to read offline
Bitcoin & Blockchain 101
Who am I?
James Turner
Polyglot programmer
Worked for ebay , BBC, BSkyB
CTO @ magnr.com
2
Agenda
•How you might know Bitcoin
•What is Bitcoin?
•How Bitcoin solves certain problems
•What is this magical Blockchain everyone is talking about?
•It’s not all shiny
•Recap
•Questions
3
This is NOT Bitcoin
4
http://www.wired.com/2015/04/silk-road-1/
This is
5
The Bitcoin protocol
• A method of exchanging data over a network
• A set of rules that everyone adheres to.
• These rules can be verified to check for errors
• Describes a transaction between 1 or more parties
6
Bank Alice and Bob
7
Send £100 to Bob

pretty please?
BOB YOU’RE RICH!
Alice Bob
When Who Amount
20 Aug Alice -100
21 Aug Graham +25
22 Aug Steve -80
23 Aug Chen -10
When Who Amount
21 Aug Bob +100
21 Aug Ian +25
21 Aug Dave +10
24 Aug Joe -99
COORDINATED EFFORTBANK A BANK B
Bank A Ledger Bank B Ledger
Banking problems?
• Centralised system failure (NatWest/RBS ATM glitch)
• Centralised trust failure (Northern Rock)
• Separated Ledgers (no single view of state - impractical auditing)
8
http://www.theguardian.com/business/2016/jan/01/natwest-rbs-customers-hit-another-banking-glitch

http://news.bbc.co.uk/1/hi/business/6996136.stm
Bitcoin Alice and Bob
9
Alice Bob
When Who Amount
20 Aug Alice -100
21 Aug Bob +100
21 Aug Ian +25
21 Aug Dave +10
21 Aug Graham
a
+25
22 Aug Steve -80
Graham
Dave
Steve
When Who Amount
20 Aug Alice -100
21 Aug Bob +100
21 Aug Ian +25
21 Aug Dave +10
21 Aug Graham
a
+25
22 Aug Steve -80
W W A
20 Ali-100
21 B +
21 Ia +
21 D +
21 Gr +
22 St -80
W W A
20 Ali-100
21 B +
21 Ia +
21 D +
21 Gr +
22 St -80
W W A
20 Ali-100
21 B +
21 Ia +
21 D +
21 Gr +
22 St -80
Bitcoin Alice and Bob Transaction
10
Alice Bob
Graham
Dave
Steve
Who Amt
Alice -20
Bob +20
Who Amt
Alice -20
Bob +20
Who Amt
Alice -20
Bob +20
Who Amt
Alice -20
Bob +20
When Who Amount
20 Aug Alice -100
21 Aug Bob +100
21 Aug Ian +25
21 Aug Dave +10
21 Aug Graham
a
+25
22 Aug Steve -80
23 Aug Alice -20
23 Aug Bob +20
When Who Amount
20 Aug Alice -100
21 Aug Bob +100
21 Aug Ian +25
21 Aug Dave +10
21 Aug Graham
a
+25
22 Aug Steve -80
When Who Amt
23 Aug Alice -20
23 Aug Bob +20
+
W W A20 Ali-10021 B +21 Ia +
21 D +21 Gr +22 St -80
23 Ali -2023 B +
W W A20 Ali-10021 B +21 Ia +
21 D +21 Gr +22 St -80
23 Ali -2023 B +
W W A20 Ali-10021 B +21 Ia +
21 D +21 Gr +22 St -80
23 Ali -2023 B +
Bitcoin Properties
• Fault tolerance
• No centralised trust
• Auditable
11
Problems Solved…
12
Not quite…
13
EVIL ALICE - Double Spending
14
Alice Bob
When Who Amount
20 Aug Alice -100
20 Aug Bob +100
When Who Amount
20 Aug Alice -100
20 Aug Graham +100
Graham
When Who Amount
19 Aug Steve +50
19 Aug Ian +10
19 Aug Joe -90
20 Aug Alice -100
20 Aug Bob +100
When Who Amount
19 Aug Steve +50
19 Aug Ian +10
19 Aug Joe -90
20 Aug Alice -100
20 Aug Bob +100
When Who Amount
19 Aug Steve +50
19 Aug Ian +10
19 Aug Joe -90
20 Aug Alice -100
20 Aug Graham +100
???
Changing the ledger a little (part 1)
15
When From To Amount
20 Aug Alice Bob 80
20 Aug Alice Alice 20
21 Aug Bob Graham 80
22 Aug Graham Bob 10
22 Aug Graham Graham 70
Let’s assume Alice has £100

We can split a transaction into giving some money

and receiving some change in return. Much like a cash transaction
Changing the ledger a little (part 2)
16
TX ID When From To Amount
1,0 20 Aug Alice Bob 80
1,1 20 Aug Alice Alice 20
2,0 21 Aug Bob Graham 80
3,0 22 Aug Graham Bob 10
3,1 22 Aug Graham Graham 70
Let’s give each Transaction an Identity and Index
Changing the ledger a little (part 3)
17
TX ID SPENDS When From To Amount SPENT?
1,0 0,0 20 Aug Alice Bob 80 YES
1,1 0,0 20 Aug Alice Alice 20 NO
2,0 1,0 21 Aug Bob Graham 80 YES
3,0 2,0 22 Aug Graham Bob 10 NO
3,1 2,0 22 Aug Graham Graham 70 NO
Who Balance
Alice 20
Bob 10
Graham 70
Each transaction references a previous transaction
Blockchain the Magical Unicorn
18
Block 2
Block 1
reference
TX ID SPENDS When From To Amount SPENT?
1,0 0,0 20 Aug Alice Bob 80 YES
1,1 0,0 20 Aug Alice Alice 20 NO
2,0 1,0 21 Aug Bob Graham 80 YES
3,0 2,0 22 Aug Graham Bob 10 NO
3,1 2,0 22 Aug Graham Graham 70 NO
TX1
TX2
TX3
Creating a block
• Take some recent transaction data and a reference to a previous block
• Produce a hash (algorithmic computational function) of this data
• Add the new block to the chain of blocks you know about
• Rinse, repeat…
19
What the hash?
“The quick brown fox jumps over the lazy dog”
d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592
“The quick brown fox jumps over the lazy doh”
631386c0ac66eafac3a28dbe68a76c6cbc0ba6382011481d59e6795243499196
1 letter difference in characters results in extremely different hash results.
20
https://en.wikipedia.org/wiki/SHA-2
Blockchain
21
Block 1
2cf24d…8b9824
Block 2
5a936e…c5850c
Previous:Previous:
Block 3
Previous:
91e924…78f0ab
5a936e…c5850c
Hashed
91e924…78f0ab
Hashed Hashed
TX 1
TX 2
TX 3 TX 4
4101e9…09809f
HEIGHT: 0 HEIGHT: 1 HEIGHT: 2
Blockchain immutability
22
Block 1 Block 2 Block 3
5a936e…c5850c 91e924…78f0ab
TX 1
TX 2
TX 3 TX 4
4101e9…09809f
Block 1 Block 2 Block 3
5a936e…c5850c
TX 1
TX 2
TX 3.1 TX 4
4101e9…09809f60da4a…a2f738
XPrevious:
91e924…78f0ab
Block difficulty
• What’s to stop Alice from re-writing all historical blocks?
• Hashing has to be sufficiently complex so as to take time to produce
• Thus Alice cannot guarantee she will be the next person to “mine” a block.
• Most cryptocurrencies rely on the difficulty being a hash with a certain
number of 0 prefixes, e.g.
• 000000000000000006c7cdecaf9dbe50a5fc693e7a555550d57aa1706f3f964b
• THIS IS PROOF OF WORK (AKA MINING)!
23
EVIL ALICE - Double Spending
24
Alice Bob
When Who Amount
20 Aug Alice -100
20 Aug Bob +100
When Who Amount
20 Aug Alice -100
20 Aug Graham +100
Graham
When Who Amount
19 Aug Steve +50
19 Aug Ian +10
19 Aug Joe -90
20 Aug Alice -100
20 Aug Bob +100
When Who Amount
19 Aug Steve +50
19 Aug Ian +10
19 Aug Joe -90
20 Aug Alice -100
20 Aug Bob +100
When Who Amount
19 Aug Steve +50
19 Aug Ian +10
19 Aug Joe -90
20 Aug Alice -100
20 Aug Graham +100
When Who Amount
19 Aug Steve +50
19 Aug Ian +10
19 Aug Joe -90
20 Aug Alice -100
20 Aug Bob +100
NEW
BLOCK
FOUND
Why bother?
• Each new block is rewarded with bitcoins
• Thus, there is a greater benefit from being a good citizen
25
26
27
EVIL ALICE - Spending Graham’s Money
28
Alice Bob
When Who Amount
20 Aug Graham -100
20 Aug Alice +100
Graham
When Who Amount
19 Aug Steve +50
19 Aug Ian +10
19 Aug Joe -90
20 Aug Graham -100
20 Aug Alice +100
When Who Amount
19 Aug Steve +50
19 Aug Ian +10
19 Aug Joe -90
20 Aug Graham -100
20 Aug Alice +100
When Who Amount
19 Aug Steve +50
19 Aug Ian +10
19 Aug Joe -90
When Who Amount
20 Aug Graham -100
20 Aug Alice +100
???

UM NO!
So…
How do I know that the cash you’re giving me, belongs to you?
29
Introducing Cryptography
• Cryptography is mathematics (i.e. provable)
• Bitcoin uses asymmetric key cryptography based on ECDSA
• Bitcoin uses the public key component as the “address”.
• No reliance on an intermediary party to provide account numbers.
30
https://en.bitcoin.it/wiki/How_bitcoin_works

https://en.wikipedia.org/wiki/Public-key_cryptography
Public/Private Keys
31
WHO PUBLIC KEY PRIVATE KEY
Alice aabc4d 982831
Bob 8392a1 471829
Graham 1b1b78 747173
The Ledger
32
TX ID SPENDS When From To Amount SPENT?
1,0 0,0 20 Aug Alice Bob 80 YES
1,1 0,0 20 Aug Alice Alice 20 NO
2,0 1,0 21 Aug Bob Graham 80 YES
3,0 2,0 22 Aug Graham Bob 10 NO
3,1 2,0 22 Aug Graham Graham 70 NO
The Anonymous Ledger
33
TX ID SPENDS When From To Amount SPENT?
1,0 0,0 20 Aug aabc4d
Alice
8392a1
Bob
80 YES
1,1 0,0 20 Aug aabc4d
Alice
aabc4d
Alice
20 NO
2,0 1,0 21 Aug 8392a1
Bob
1b1b78
Graham
80 YES
3,0 2,0 22 Aug 1b1b78
Graham
8392a1
Bob
10 NO
3,1 2,0 22 Aug 1b1b78
Graham
1b1b78
Graham
70 NO
The Signed Anonymous Ledger
34
TX ID SPENDS When From To Amount SPENT? SIG
1,0 0,0 20 Aug aabc4d
Alice
8392a1
Bob
80 YES 41c1a8
1,1 0,0 20 Aug aabc4d
Alice
aabc4d
Alice
20 NO 6219dd
2,0 1,0 21 Aug 8392a1
Bob
1b1b78
Graham
80 YES 98fbca
3,0 2,0 22 Aug 1b1b78
Graham
8392a1
Bob
10 NO d38628
3,1 2,0 22 Aug 1b1b78
Graham
1b1b78
Graham
70 NO a8239c8
EVIL ALICE - Spending Grahams
35
Alice Bob
When Who Amount SIG
20 Aug Graham -100 ???
20 Aug Alice +100 ???
Graham
When Who Amount
19 Aug Steve +50
19 Aug Ian +10
19 Aug Joe -90
20 Aug Graham -100
20 Aug Alice +100
When Who Amount
19 Aug Steve +50
19 Aug Ian +10
19 Aug Joe -90
When Who Amount
19 Aug Steve +50
19 Aug Ian +10
19 Aug Joe -90
Invalid Sig, Reject
When Who Amount SIG
20 Aug Graham -100 ???
20 Aug Alice +100 ???
Invalid Sig, Reject
X
X
36
But, it’s not all shiny
• Bitcoin is “eventually consistent” (~10 mins)
• Non-rescindable, once it’s gone, it’s gone!
• Loss of private keys = loss of all money, can’t print any more
• ~1% loss of bitcoin per year
• Change rollouts are hard
37
Recap
• Distributed ledger of transactions
• Fault tolerant
• Immutable
• Auditable
• Secure
• Anonymised
• Rewards participation
38
So what are people doing with bitcoin?
39
R3 Blockchain

Consortium
Purse.io spending power XAPO Debit Card
Gift cards
Smart Contracts
Blockchain in the Linux Kernel
Immutable record keeping
Diamond tracking and verification of source
Bitcoin Savings
Questions?
40

More Related Content

Viewers also liked

Universidad nacional de chimborazo (trabajo) 2010
Universidad nacional de chimborazo (trabajo) 2010Universidad nacional de chimborazo (trabajo) 2010
Universidad nacional de chimborazo (trabajo) 2010RODOLFOEDGARSHIGUANG
 
Grafico diario del dax perfomance index para el 10 12-2012
Grafico diario del dax perfomance index para el 10 12-2012Grafico diario del dax perfomance index para el 10 12-2012
Grafico diario del dax perfomance index para el 10 12-2012Experiencia Trading
 
Savings e investimenti pubblicitari: Wrap up & Best practises 4 marzo 2010- F...
Savings e investimenti pubblicitari: Wrap up & Best practises 4 marzo 2010- F...Savings e investimenti pubblicitari: Wrap up & Best practises 4 marzo 2010- F...
Savings e investimenti pubblicitari: Wrap up & Best practises 4 marzo 2010- F...Paola Furlanetto
 
Building the stacks for a mutualised newspaper
Building the stacks for  a mutualised newspaperBuilding the stacks for  a mutualised newspaper
Building the stacks for a mutualised newspaperThe Guardian Open Platform
 
Intro to WordPress #memtech
Intro to WordPress #memtechIntro to WordPress #memtech
Intro to WordPress #memtechSamuel Wood
 
Elogio de la perseverancia.
Elogio de la perseverancia.Elogio de la perseverancia.
Elogio de la perseverancia.José María
 
Universidad nacional de chimborazo examen
Universidad nacional de chimborazo examenUniversidad nacional de chimborazo examen
Universidad nacional de chimborazo examenjoyeria hidalgo vazquez
 
Greythorn Technology Market Landscape
Greythorn Technology Market LandscapeGreythorn Technology Market Landscape
Greythorn Technology Market LandscapeGreythornAU
 
UX Nights Vol 03.06: Los games también son usuarios
UX Nights Vol 03.06: Los games también son usuariosUX Nights Vol 03.06: Los games también son usuarios
UX Nights Vol 03.06: Los games también son usuariosUX Nights
 
Plantas carnivoras
Plantas carnivorasPlantas carnivoras
Plantas carnivorasSIMONEANTUNE
 
A Complete Content Strategy in 2 Hours a Week
A Complete Content Strategy in 2 Hours a WeekA Complete Content Strategy in 2 Hours a Week
A Complete Content Strategy in 2 Hours a WeekVictor M Ramirez
 

Viewers also liked (16)

Universidad nacional de chimborazo (trabajo) 2010
Universidad nacional de chimborazo (trabajo) 2010Universidad nacional de chimborazo (trabajo) 2010
Universidad nacional de chimborazo (trabajo) 2010
 
Grafico diario del dax perfomance index para el 10 12-2012
Grafico diario del dax perfomance index para el 10 12-2012Grafico diario del dax perfomance index para el 10 12-2012
Grafico diario del dax perfomance index para el 10 12-2012
 
Savings e investimenti pubblicitari: Wrap up & Best practises 4 marzo 2010- F...
Savings e investimenti pubblicitari: Wrap up & Best practises 4 marzo 2010- F...Savings e investimenti pubblicitari: Wrap up & Best practises 4 marzo 2010- F...
Savings e investimenti pubblicitari: Wrap up & Best practises 4 marzo 2010- F...
 
Bee Style:vol.041
Bee Style:vol.041Bee Style:vol.041
Bee Style:vol.041
 
КРСК
КРСККРСК
КРСК
 
Building the stacks for a mutualised newspaper
Building the stacks for  a mutualised newspaperBuilding the stacks for  a mutualised newspaper
Building the stacks for a mutualised newspaper
 
Calendário 2014 2015
Calendário 2014 2015Calendário 2014 2015
Calendário 2014 2015
 
Intro to WordPress #memtech
Intro to WordPress #memtechIntro to WordPress #memtech
Intro to WordPress #memtech
 
Elogio de la perseverancia.
Elogio de la perseverancia.Elogio de la perseverancia.
Elogio de la perseverancia.
 
Universidad nacional de chimborazo examen
Universidad nacional de chimborazo examenUniversidad nacional de chimborazo examen
Universidad nacional de chimborazo examen
 
Greythorn Technology Market Landscape
Greythorn Technology Market LandscapeGreythorn Technology Market Landscape
Greythorn Technology Market Landscape
 
UX Nights Vol 03.06: Los games también son usuarios
UX Nights Vol 03.06: Los games también son usuariosUX Nights Vol 03.06: Los games también son usuarios
UX Nights Vol 03.06: Los games también son usuarios
 
Plantas carnivoras
Plantas carnivorasPlantas carnivoras
Plantas carnivoras
 
A Complete Content Strategy in 2 Hours a Week
A Complete Content Strategy in 2 Hours a WeekA Complete Content Strategy in 2 Hours a Week
A Complete Content Strategy in 2 Hours a Week
 
Cómo las empresas pueden vender en redes sociales
Cómo las empresas pueden vender en redes socialesCómo las empresas pueden vender en redes sociales
Cómo las empresas pueden vender en redes sociales
 
Psd to shopify
Psd to shopifyPsd to shopify
Psd to shopify
 

Similar to Bitcoin & Blockchain 101 Explained

Блокчейн. Lego для интересующихся / Александр Боргардт (GolosCore)
Блокчейн. Lego для интересующихся / Александр Боргардт (GolosCore) Блокчейн. Lego для интересующихся / Александр Боргардт (GolosCore)
Блокчейн. Lego для интересующихся / Александр Боргардт (GolosCore) Ontico
 
What is Bitcoin? - While42 (03/25/15)
What is Bitcoin? - While42 (03/25/15)What is Bitcoin? - While42 (03/25/15)
What is Bitcoin? - While42 (03/25/15)Louison Dumont
 
Smart contracts and applications part I
Smart contracts and applications   part ISmart contracts and applications   part I
Smart contracts and applications part Ivpnmentor
 
Anatomy of a Bitcoin transaction
Anatomy of a Bitcoin transactionAnatomy of a Bitcoin transaction
Anatomy of a Bitcoin transactionSjors Provoost
 
Blockchain and the Cryptocurrency Revolution - Tony Aubé at WAQ18
Blockchain and the Cryptocurrency Revolution - Tony Aubé at WAQ18Blockchain and the Cryptocurrency Revolution - Tony Aubé at WAQ18
Blockchain and the Cryptocurrency Revolution - Tony Aubé at WAQ18Tony Aubé
 
State channels and scalability
State channels and scalabilityState channels and scalability
State channels and scalabilityMartin Köppelmann
 
sfrontori-bitcoin-technical intro-meetup2014
sfrontori-bitcoin-technical intro-meetup2014sfrontori-bitcoin-technical intro-meetup2014
sfrontori-bitcoin-technical intro-meetup2014Stefano Frontori
 
Intro. to Lightning Network (Bitcoin/Litecoin) - Blockchain Developers Malaysia
Intro. to Lightning Network (Bitcoin/Litecoin) - Blockchain Developers MalaysiaIntro. to Lightning Network (Bitcoin/Litecoin) - Blockchain Developers Malaysia
Intro. to Lightning Network (Bitcoin/Litecoin) - Blockchain Developers MalaysiaTM Lee
 
Blockchain explained (Technology running Bitcoin)
Blockchain explained (Technology running Bitcoin)Blockchain explained (Technology running Bitcoin)
Blockchain explained (Technology running Bitcoin)Qais Ammari
 
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes Zweng
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes ZwengBlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes Zweng
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes ZwengBlockchainHub Graz
 
August 2011 Market Pulse - Detached Homes
August 2011 Market Pulse - Detached HomesAugust 2011 Market Pulse - Detached Homes
August 2011 Market Pulse - Detached Homeschipwags
 

Similar to Bitcoin & Blockchain 101 Explained (13)

Блокчейн. Lego для интересующихся / Александр Боргардт (GolosCore)
Блокчейн. Lego для интересующихся / Александр Боргардт (GolosCore) Блокчейн. Lego для интересующихся / Александр Боргардт (GolosCore)
Блокчейн. Lego для интересующихся / Александр Боргардт (GolosCore)
 
What is Bitcoin? - While42 (03/25/15)
What is Bitcoin? - While42 (03/25/15)What is Bitcoin? - While42 (03/25/15)
What is Bitcoin? - While42 (03/25/15)
 
Smart contracts and applications part I
Smart contracts and applications   part ISmart contracts and applications   part I
Smart contracts and applications part I
 
Blockchain
BlockchainBlockchain
Blockchain
 
notes.pdf
notes.pdfnotes.pdf
notes.pdf
 
Anatomy of a Bitcoin transaction
Anatomy of a Bitcoin transactionAnatomy of a Bitcoin transaction
Anatomy of a Bitcoin transaction
 
Blockchain and the Cryptocurrency Revolution - Tony Aubé at WAQ18
Blockchain and the Cryptocurrency Revolution - Tony Aubé at WAQ18Blockchain and the Cryptocurrency Revolution - Tony Aubé at WAQ18
Blockchain and the Cryptocurrency Revolution - Tony Aubé at WAQ18
 
State channels and scalability
State channels and scalabilityState channels and scalability
State channels and scalability
 
sfrontori-bitcoin-technical intro-meetup2014
sfrontori-bitcoin-technical intro-meetup2014sfrontori-bitcoin-technical intro-meetup2014
sfrontori-bitcoin-technical intro-meetup2014
 
Intro. to Lightning Network (Bitcoin/Litecoin) - Blockchain Developers Malaysia
Intro. to Lightning Network (Bitcoin/Litecoin) - Blockchain Developers MalaysiaIntro. to Lightning Network (Bitcoin/Litecoin) - Blockchain Developers Malaysia
Intro. to Lightning Network (Bitcoin/Litecoin) - Blockchain Developers Malaysia
 
Blockchain explained (Technology running Bitcoin)
Blockchain explained (Technology running Bitcoin)Blockchain explained (Technology running Bitcoin)
Blockchain explained (Technology running Bitcoin)
 
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes Zweng
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes ZwengBlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes Zweng
BlockchainHub Graz Meetup #22 - Atomic Swaps - Johannes Zweng
 
August 2011 Market Pulse - Detached Homes
August 2011 Market Pulse - Detached HomesAugust 2011 Market Pulse - Detached Homes
August 2011 Market Pulse - Detached Homes
 

Recently uploaded

Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 

Recently uploaded (20)

Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 

Bitcoin & Blockchain 101 Explained

  • 2. Who am I? James Turner Polyglot programmer Worked for ebay , BBC, BSkyB CTO @ magnr.com 2
  • 3. Agenda •How you might know Bitcoin •What is Bitcoin? •How Bitcoin solves certain problems •What is this magical Blockchain everyone is talking about? •It’s not all shiny •Recap •Questions 3
  • 4. This is NOT Bitcoin 4 http://www.wired.com/2015/04/silk-road-1/
  • 6. The Bitcoin protocol • A method of exchanging data over a network • A set of rules that everyone adheres to. • These rules can be verified to check for errors • Describes a transaction between 1 or more parties 6
  • 7. Bank Alice and Bob 7 Send £100 to Bob pretty please? BOB YOU’RE RICH! Alice Bob When Who Amount 20 Aug Alice -100 21 Aug Graham +25 22 Aug Steve -80 23 Aug Chen -10 When Who Amount 21 Aug Bob +100 21 Aug Ian +25 21 Aug Dave +10 24 Aug Joe -99 COORDINATED EFFORTBANK A BANK B Bank A Ledger Bank B Ledger
  • 8. Banking problems? • Centralised system failure (NatWest/RBS ATM glitch) • Centralised trust failure (Northern Rock) • Separated Ledgers (no single view of state - impractical auditing) 8 http://www.theguardian.com/business/2016/jan/01/natwest-rbs-customers-hit-another-banking-glitch http://news.bbc.co.uk/1/hi/business/6996136.stm
  • 9. Bitcoin Alice and Bob 9 Alice Bob When Who Amount 20 Aug Alice -100 21 Aug Bob +100 21 Aug Ian +25 21 Aug Dave +10 21 Aug Graham a +25 22 Aug Steve -80 Graham Dave Steve When Who Amount 20 Aug Alice -100 21 Aug Bob +100 21 Aug Ian +25 21 Aug Dave +10 21 Aug Graham a +25 22 Aug Steve -80 W W A 20 Ali-100 21 B + 21 Ia + 21 D + 21 Gr + 22 St -80 W W A 20 Ali-100 21 B + 21 Ia + 21 D + 21 Gr + 22 St -80 W W A 20 Ali-100 21 B + 21 Ia + 21 D + 21 Gr + 22 St -80
  • 10. Bitcoin Alice and Bob Transaction 10 Alice Bob Graham Dave Steve Who Amt Alice -20 Bob +20 Who Amt Alice -20 Bob +20 Who Amt Alice -20 Bob +20 Who Amt Alice -20 Bob +20 When Who Amount 20 Aug Alice -100 21 Aug Bob +100 21 Aug Ian +25 21 Aug Dave +10 21 Aug Graham a +25 22 Aug Steve -80 23 Aug Alice -20 23 Aug Bob +20 When Who Amount 20 Aug Alice -100 21 Aug Bob +100 21 Aug Ian +25 21 Aug Dave +10 21 Aug Graham a +25 22 Aug Steve -80 When Who Amt 23 Aug Alice -20 23 Aug Bob +20 + W W A20 Ali-10021 B +21 Ia + 21 D +21 Gr +22 St -80 23 Ali -2023 B + W W A20 Ali-10021 B +21 Ia + 21 D +21 Gr +22 St -80 23 Ali -2023 B + W W A20 Ali-10021 B +21 Ia + 21 D +21 Gr +22 St -80 23 Ali -2023 B +
  • 11. Bitcoin Properties • Fault tolerance • No centralised trust • Auditable 11
  • 14. EVIL ALICE - Double Spending 14 Alice Bob When Who Amount 20 Aug Alice -100 20 Aug Bob +100 When Who Amount 20 Aug Alice -100 20 Aug Graham +100 Graham When Who Amount 19 Aug Steve +50 19 Aug Ian +10 19 Aug Joe -90 20 Aug Alice -100 20 Aug Bob +100 When Who Amount 19 Aug Steve +50 19 Aug Ian +10 19 Aug Joe -90 20 Aug Alice -100 20 Aug Bob +100 When Who Amount 19 Aug Steve +50 19 Aug Ian +10 19 Aug Joe -90 20 Aug Alice -100 20 Aug Graham +100 ???
  • 15. Changing the ledger a little (part 1) 15 When From To Amount 20 Aug Alice Bob 80 20 Aug Alice Alice 20 21 Aug Bob Graham 80 22 Aug Graham Bob 10 22 Aug Graham Graham 70 Let’s assume Alice has £100 We can split a transaction into giving some money and receiving some change in return. Much like a cash transaction
  • 16. Changing the ledger a little (part 2) 16 TX ID When From To Amount 1,0 20 Aug Alice Bob 80 1,1 20 Aug Alice Alice 20 2,0 21 Aug Bob Graham 80 3,0 22 Aug Graham Bob 10 3,1 22 Aug Graham Graham 70 Let’s give each Transaction an Identity and Index
  • 17. Changing the ledger a little (part 3) 17 TX ID SPENDS When From To Amount SPENT? 1,0 0,0 20 Aug Alice Bob 80 YES 1,1 0,0 20 Aug Alice Alice 20 NO 2,0 1,0 21 Aug Bob Graham 80 YES 3,0 2,0 22 Aug Graham Bob 10 NO 3,1 2,0 22 Aug Graham Graham 70 NO Who Balance Alice 20 Bob 10 Graham 70 Each transaction references a previous transaction
  • 18. Blockchain the Magical Unicorn 18 Block 2 Block 1 reference TX ID SPENDS When From To Amount SPENT? 1,0 0,0 20 Aug Alice Bob 80 YES 1,1 0,0 20 Aug Alice Alice 20 NO 2,0 1,0 21 Aug Bob Graham 80 YES 3,0 2,0 22 Aug Graham Bob 10 NO 3,1 2,0 22 Aug Graham Graham 70 NO TX1 TX2 TX3
  • 19. Creating a block • Take some recent transaction data and a reference to a previous block • Produce a hash (algorithmic computational function) of this data • Add the new block to the chain of blocks you know about • Rinse, repeat… 19
  • 20. What the hash? “The quick brown fox jumps over the lazy dog” d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592 “The quick brown fox jumps over the lazy doh” 631386c0ac66eafac3a28dbe68a76c6cbc0ba6382011481d59e6795243499196 1 letter difference in characters results in extremely different hash results. 20 https://en.wikipedia.org/wiki/SHA-2
  • 21. Blockchain 21 Block 1 2cf24d…8b9824 Block 2 5a936e…c5850c Previous:Previous: Block 3 Previous: 91e924…78f0ab 5a936e…c5850c Hashed 91e924…78f0ab Hashed Hashed TX 1 TX 2 TX 3 TX 4 4101e9…09809f HEIGHT: 0 HEIGHT: 1 HEIGHT: 2
  • 22. Blockchain immutability 22 Block 1 Block 2 Block 3 5a936e…c5850c 91e924…78f0ab TX 1 TX 2 TX 3 TX 4 4101e9…09809f Block 1 Block 2 Block 3 5a936e…c5850c TX 1 TX 2 TX 3.1 TX 4 4101e9…09809f60da4a…a2f738 XPrevious: 91e924…78f0ab
  • 23. Block difficulty • What’s to stop Alice from re-writing all historical blocks? • Hashing has to be sufficiently complex so as to take time to produce • Thus Alice cannot guarantee she will be the next person to “mine” a block. • Most cryptocurrencies rely on the difficulty being a hash with a certain number of 0 prefixes, e.g. • 000000000000000006c7cdecaf9dbe50a5fc693e7a555550d57aa1706f3f964b • THIS IS PROOF OF WORK (AKA MINING)! 23
  • 24. EVIL ALICE - Double Spending 24 Alice Bob When Who Amount 20 Aug Alice -100 20 Aug Bob +100 When Who Amount 20 Aug Alice -100 20 Aug Graham +100 Graham When Who Amount 19 Aug Steve +50 19 Aug Ian +10 19 Aug Joe -90 20 Aug Alice -100 20 Aug Bob +100 When Who Amount 19 Aug Steve +50 19 Aug Ian +10 19 Aug Joe -90 20 Aug Alice -100 20 Aug Bob +100 When Who Amount 19 Aug Steve +50 19 Aug Ian +10 19 Aug Joe -90 20 Aug Alice -100 20 Aug Graham +100 When Who Amount 19 Aug Steve +50 19 Aug Ian +10 19 Aug Joe -90 20 Aug Alice -100 20 Aug Bob +100 NEW BLOCK FOUND
  • 25. Why bother? • Each new block is rewarded with bitcoins • Thus, there is a greater benefit from being a good citizen 25
  • 26. 26
  • 27. 27
  • 28. EVIL ALICE - Spending Graham’s Money 28 Alice Bob When Who Amount 20 Aug Graham -100 20 Aug Alice +100 Graham When Who Amount 19 Aug Steve +50 19 Aug Ian +10 19 Aug Joe -90 20 Aug Graham -100 20 Aug Alice +100 When Who Amount 19 Aug Steve +50 19 Aug Ian +10 19 Aug Joe -90 20 Aug Graham -100 20 Aug Alice +100 When Who Amount 19 Aug Steve +50 19 Aug Ian +10 19 Aug Joe -90 When Who Amount 20 Aug Graham -100 20 Aug Alice +100 ??? UM NO!
  • 29. So… How do I know that the cash you’re giving me, belongs to you? 29
  • 30. Introducing Cryptography • Cryptography is mathematics (i.e. provable) • Bitcoin uses asymmetric key cryptography based on ECDSA • Bitcoin uses the public key component as the “address”. • No reliance on an intermediary party to provide account numbers. 30 https://en.bitcoin.it/wiki/How_bitcoin_works https://en.wikipedia.org/wiki/Public-key_cryptography
  • 31. Public/Private Keys 31 WHO PUBLIC KEY PRIVATE KEY Alice aabc4d 982831 Bob 8392a1 471829 Graham 1b1b78 747173
  • 32. The Ledger 32 TX ID SPENDS When From To Amount SPENT? 1,0 0,0 20 Aug Alice Bob 80 YES 1,1 0,0 20 Aug Alice Alice 20 NO 2,0 1,0 21 Aug Bob Graham 80 YES 3,0 2,0 22 Aug Graham Bob 10 NO 3,1 2,0 22 Aug Graham Graham 70 NO
  • 33. The Anonymous Ledger 33 TX ID SPENDS When From To Amount SPENT? 1,0 0,0 20 Aug aabc4d Alice 8392a1 Bob 80 YES 1,1 0,0 20 Aug aabc4d Alice aabc4d Alice 20 NO 2,0 1,0 21 Aug 8392a1 Bob 1b1b78 Graham 80 YES 3,0 2,0 22 Aug 1b1b78 Graham 8392a1 Bob 10 NO 3,1 2,0 22 Aug 1b1b78 Graham 1b1b78 Graham 70 NO
  • 34. The Signed Anonymous Ledger 34 TX ID SPENDS When From To Amount SPENT? SIG 1,0 0,0 20 Aug aabc4d Alice 8392a1 Bob 80 YES 41c1a8 1,1 0,0 20 Aug aabc4d Alice aabc4d Alice 20 NO 6219dd 2,0 1,0 21 Aug 8392a1 Bob 1b1b78 Graham 80 YES 98fbca 3,0 2,0 22 Aug 1b1b78 Graham 8392a1 Bob 10 NO d38628 3,1 2,0 22 Aug 1b1b78 Graham 1b1b78 Graham 70 NO a8239c8
  • 35. EVIL ALICE - Spending Grahams 35 Alice Bob When Who Amount SIG 20 Aug Graham -100 ??? 20 Aug Alice +100 ??? Graham When Who Amount 19 Aug Steve +50 19 Aug Ian +10 19 Aug Joe -90 20 Aug Graham -100 20 Aug Alice +100 When Who Amount 19 Aug Steve +50 19 Aug Ian +10 19 Aug Joe -90 When Who Amount 19 Aug Steve +50 19 Aug Ian +10 19 Aug Joe -90 Invalid Sig, Reject When Who Amount SIG 20 Aug Graham -100 ??? 20 Aug Alice +100 ??? Invalid Sig, Reject X X
  • 36. 36
  • 37. But, it’s not all shiny • Bitcoin is “eventually consistent” (~10 mins) • Non-rescindable, once it’s gone, it’s gone! • Loss of private keys = loss of all money, can’t print any more • ~1% loss of bitcoin per year • Change rollouts are hard 37
  • 38. Recap • Distributed ledger of transactions • Fault tolerant • Immutable • Auditable • Secure • Anonymised • Rewards participation 38
  • 39. So what are people doing with bitcoin? 39 R3 Blockchain Consortium Purse.io spending power XAPO Debit Card Gift cards Smart Contracts Blockchain in the Linux Kernel Immutable record keeping Diamond tracking and verification of source Bitcoin Savings