SlideShare a Scribd company logo
A Complete Beginners Guide to
Blockchain Technology
@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 1st
of 6.
Questions? Comments? @MrAdamGiles adam@neuroware.io
Introduction & Primer
Hello
Adam Giles
Cofounder & CEO of Neuroware.io
Tools, software & Infrastructure for
developers building blockchain
applications
Coding since late 80's
Working with Bitcoin 2010
@MrAdamGiles
adam@neuroware.io
Introduction & Primer
Lets start at the beginning
No prior knowledge of blockchains required.
We’ll be looking at Bitcoin, but mostly talking software.
Start with a simplified overview of how it all works, then dive deeper
into each section.
Heads up! Some of the simplifications are so simple, that Bitcoin
experts will be yelling that they’re wrong. (They’re right!)
Introduction & Primer
Who’s in the room?
What’s your language of choice?
βž” NodeJS
βž” Python
βž” Java
βž” PHP
βž” Ruby
βž” HTML5
βž” C/C++/C#
βž” Anything else?
How long have you been coding?
βž” Not a dev ( 0yrs )
βž” Total newbie ( <1 yr )
βž” Mid-level ( 1<5 yrs )
βž” Old timer ( +5 yrs )
Schedule
Introduction & Primer - What you need to know
Blockchains 101 - Complete beginners guide to a blockchain
Transactions 101 - All about what goes into the blocks
Mining & Blocks - How blocks get made
Blockchains 102 - Implications of mining
Transactions 102 - Nitty gritty details
Each module is approx 40 mins with 15 min Q & A afterwards
Introduction & Primer
What you need to know
No new technology in blockchains
Introduction & Primer
Just lots of it combined in a new way
βž” Distributed Systems
βž” Peer-to-peer networks
βž” Hashing functions
βž” Public - Private key cryptography
βž” Cryptographic signatures
βž” Elliptic curve cryptography
Code comes last
Introduction & Primer
There’s lots of me talking and pointing to the screen in this
presentation.
Blockchain technology is both technical and intricate, if we jumped
straight into code, you might now know what you were looking at.
I aim to give you the base understanding needed to pick up a library for
your chosen language and know what it’s talking about.
It’s all about Transactions
Cash is peer to peer
Introduction & Primer
Observations:
βž” No middleman required.
βž” DIY Fraud detection
βž” Sufficient trust for the value of the
transaction
βž” Anonymous/Private
βž” Distributed
Electronic Middlemen
Introduction & Primer
Observations:
βž” Requires 3rd
party trust
βž” The more complex the flow, the
more middlemen required
βž” Specialised equipment needed
(e.g. POS terminal, connection to
Txn networks
βž” Fraud detection by 3rd
parties
βž” Every step adds cost
Electronic Middlemen
Middlemen adding value
Introduction & Primer
βž” Provision of infrastructure (Terminals, network connections etc)
βž” Management of commercial relationships between parties (Lots of
lawyers)
βž” Abstraction of complexity
βž” Fraud detection
βž” Customer service
βž” Regulatory compliance KYC, AML, Risk reporting
βž” Removal of bad-actors from the ecosystem
Until now, this is the best way we’ve been able to achieve the goal
of person-to-person transactions at a distance.
Transaction volumes are growing
Introduction & Primer
Now:
βž” Online banking transaction growth
βž” SME’s/Retail acceptance of electronic
transactions
βž” Online purchases/Commerce
βž” In-App purchases
βž” Virtual currencies in games
βž” International Transaction growth
(Commerce and Remittance)
βž” Value storage cards (loyalty cards, ERP,
gift cards etc etc)
Future:
βž” Internet of Things
βž” Autonomous Objects
βž” Programmable
money/Finance automation
In general...
Introduction & Primer
The easier it is to conduct transactions
the more people transact.
Introduction & Primer
βž” Cash is king….but only useful locally and small amounts
βž” Electronic transactions require Credit/Debit card
β—† Fees are high for merchants (Fixed Fee + 1-3%)
β—† Settlement is slow (multiple days)
β—† Chargebacks shift risk to merchant
β—† Microtransactions are cost prohibitive
βž” Walled garden/In-country solutions are piecemeal
βž” International Transfers ITT/Swift
β—† Slow, costly, mistake prone
βž” High onboarding costs/bureaucracy
LimitationsLimitations
50% of the world doesn’t have a bank account
Introduction & Primer
Blockchain powered payment networks
Introduction & Primer
Solved:
βž” Return to Peer-to-Peer
βž” Speed
βž” Trustless trust
βž” No special equipment needed
βž” Fraud
βž” Minimal Cost
βž” No chargebacks
βž” No monthly fees
βž” Transparency
Ignored:
βž” Policing bad-actors
βž” KYC/AML
βž” Insurance
βž” Onboarding process
βž” Customer service
βž” Commercial Relationships
Challenges:
βž” Technical Complexity
βž” Regulatory Uncertainty
βž” Getting the currency in the first place
Introduction & Primer
It's easy to create your own, and there are many.
Each is separate and runs its own blockchain.
The value transferred in each blockchain is primarily its own currency
Many blockchains
What is a Blockchain?
What you need to know
It all starts here
Introduction & Primer
Just going shopping...
Introduction & Primer
A centralised ledger
Introduction & Primer
Importing the stones
Introduction & Primer
Some interesting observations
Introduction & Primer
βž” The stones themselves had no non-monetary value
βž” Eventually, spending your stones didn't require physically moving
the stone – just acknowledgement of a change of ownership
βž” Impossible to do a trade in secret
βž” They developed a form of distributed ledger, but...
βž” It couldn't scale!
A blockchain is an implementation of a ledger
Introduction & Primer
βž” Ledgers record transactions - the passing of value from owner to owner
βž” Transactions are time based
βž” Once a Txn is recorded you can’t alter them
βž” You need to be able to detect if your ledger has been altered
A blockchain is a protocol for building an immutable
historical record of transactions
Blockchains Are Distributed
Network Evolution
i) centralized iii) distributed
ii) decentralized
Network Evolution
i) centralized iii) distributed
ii) decentralized
Network Evolution
i) centralized iii) distributed
ii) decentralized
Network Evolution
i) centralized iii) distributed
ii) decentralized
Network Evolution
i) centralized iii) distributed
ii) decentralized
Network Evolution
i) centralized iii) distributed
ii) decentralized
Network Evolution
i) centralized iii) distributed
ii) decentralized
Network Evolution
i) centralized iii) distributed
ii) decentralized
Network Evolution
i) centralized iii) distributed
ii) decentralized
Network Evolution
i) centralized iii) distributed
ii) decentralized
Distributed Networks
Introduction & Primer
βž” Many, equal nodes
βž” Each node has multiple connections to other nodes
βž” Very resilient to failures, attacks
βž” As long as 2 nodes are up, the network is still running
Who Invented It?
Key historical dates
Introduction & Primer
βž” 2009 first block created
βž” Satoshi Nakamoto was the pseudonym used
βž” Early days, it was just him/her/them/it
βž” Then crypto-geeks, then early technology adopters
βž” Satoshi disappears December 2010 - date of last post
βž” Recent years have seen 'professionalism' of the ecosystem
Seeking Satoshi
Introduction & Primer
βž” Not this guy! (probably)
βž” Not a great coder
βž” Not a great cryptographer
βž” Aware of the controversy
blockchains create
Seeking Satoshi
Introduction & Primer
While conspiracy theories are fun, it's mostly irrelevant
βž” Operational design published openly
βž” Protocol is opensource
βž” Code is opensource and has mostly been re-written
Is It Money?
Digital cash? Digital gold?
Has all the same characteristics
Introduction & Primer
Durability - Safe for long term storage
Portability - Easy to move around and spend
Divisibility - So you can spend small amounts
Uniformity - Each unit of value is equal
Limited supply - To preserve value
Acceptability - So you can actually spend it
Is it legal tender?
Introduction & Primer
NO!
Legal tender is defined as β€œcoins or banknotes that
must be accepted if offered in payment of a debt.”
Cryptocurrencies aren’t regulated by any central bank.
So what?
Introduction & Primer
Lots of things aren’t legal tender but still have value:
βž” Gold
βž” Diamonds
βž” Rolex watch
βž” US$ (outside the US)
Worlds most expensive pizza?
Introduction & Primer
22nd
May 2010 is Bitcoin Pizza day – bitcoins first real world transaction
βž” Laszlo Hanyecz offered 10,000 BTC for 2 pizzas
βž” Someone in the UK phoned through the order using their credit card
βž” Then worth US ~$24
βž” Currently worth US ~$2.4m
Ecosystem Developments
One of the fasting moving in tech
Introduction & Primer
Parallels to the internet
Blockchains today have been likened to the Internet in 90s.
βž” Similar investment levels
βž” Similar excitement levels
βž” Similar visions of potential uses
History doesn’t repeat, but it rhymes: We expect similar...
βž” Similar path to maturity – people, tools, process
βž” Similar adoption curve (perhaps faster)
βž” Evolution of protocol/services built on blockchains (perhaps faster)
Introduction & Primer
Parallels to the internet
Just as the internet revolutionised access to information, blockchains will do the
same to multiple industrial verticals:
βž” Finance first
●
It's what blockchains were built to do
●
It's where the money is
Non finance uses
βž” Specialist blockchains dedicated to one task
βž” Generalist blockchains to be used as a 'platform'
Brave new world/wild west – still lots of learn and build
Introduction & Primer
Where are we now?
General
Public
Developers
Introduction & Primer
Investment into the sector
βž” Reid Hoffman (LinkedIn) Invested US$20M in Blockstream Personally
βž” Sir Richard Branson backed BitPay (Exchange) in a US$30 Million Round
βž” Circle (Exchange) raised US$50 Million - led by Goldman Sachs
βž” NYSE led a US$75 Million Investment in Coinbase (Exchange)
US$1 Billion from VC funding is expected in 2015
Although this is a small cross section,
the importance is the names, not the numbers!
Introduction & Primer
Evolution of the networks
1st generation networks just transfer value - bitcoin, litecoin, dogecoin
Blockchain 1.5 technologies build upon existing blockchains by offering
additional dependent layers and protocols allowing for unique offerings:
- NameCoin provides distributed DNS
- ColoredCoin, Counterparty and Omni can tag and track digital assets
- FileCoin and StorJ provides distributed CDN (proof of bandwidth)
Introduction & Primer
Evolution of the networks
Blockchain 2.0 is currently in a mostly theoretical or pre-alpha state but
involves starting from scratch and introducing turing-complete functionality
βž” Ethetherum and Codius introduce autonomous applications (recently
used by IBM at the core of their new IoT platform - ADEPT)
Curated blockchains, Private access/Hybrid blockchains, entry/exit points
are known & regulated
βž” Ripple
βž” Tembusu
CBGTBT - Part 1 - Workshop introduction & primer
CBGTBT - Part 1 - Workshop introduction & primer
CBGTBT - Part 1 - Workshop introduction & primer
Technology Refresher
Building blocks
Some building blocks
Introduction & Primer
βž” Blockchain terminology
βž” Hash functions
βž” Merkle trees
βž” Encoding schemes
βž” Public/Private key crypto
βž” Digital Signatures
Terminology
Introduction & Primer
βž” Address: The β€˜account number’ of the person you are sending
coins to. Can be used just once or multiple times. You can have
many addresses
βž” Transaction: The transfer of value/coins from one address to
another address
βž” Block/Blockchain: The record of transactions
βž” Wallet: Software that manages your addresses and keeps track of
transactions and balances
Hashing functions
Introduction & Primer
β€˜A hash function is any function that can be used to map digital data of
arbitrary size to digital data of fixed size. The values returned by a hash
function are called hash values, hash codes, hash sums, or hashes.’
There are many types, but Bitcoin uses SHA256; output is 256bits of
data, or 64 hexadecimal characters
Hashing properties
Introduction & Primer
βž” Any size of data always results in the same length hash
βž” Slight changes of input data gives totally different hashes
β—† β€˜Hello World’ = a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e
β—† β€˜Hello World!’ = 7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069
βž” The same input always produces the same output
βž” Hashes are β€˜one way’
Hashing usages
Introduction & Primer
βž” To record a value while hiding the original value (e.g. a password)
βž” To verify the integrity of some data (store the hash, to check the
data, hash it again and compare the values; should be the same
hash value)
βž” To prove you’ve done calculations (generating hashes takes
computing power)
Merkle Tree - Hash of hashes
Introduction & Primer
βž” Multiple blocks of data, in
a certain order, into a
single hash
βž” Allows you to work out
which block has changed
Encoding Schemes
Introduction & Primer
βž” Take some data, encode it for a specific purpose (e.g. easier to
transmit, easier to read, easier to convert between formats)
βž” Two way, you can encode and decode and end up with the same data
βž” Bitcoin uses base 58 - easier to read (misses out 0 I O l as they all
look like zeros and ones)
β€˜1234567890’ = 2t6V2H
Public/Private key crypto
Introduction & Primer
βž” 2 uniquely related cryptographic keys
βž” Data encrypted with the public key can only decrypted with the
private one (and vice versa)
βž” The maths behind it is very complex
βž” Main aim is confidentiality (in messaging)
βž” Also used for digital signatures (the bit we’re interested in)
Digital Signatures
Introduction & Primer
βž” Verify the messages came from the correct person
βž” Verify the messages hasn’t been changed or tampered with
βž” Can be used to prove that you have the private key
βž” Main aim is confidence in identity (in messaging)
Ways to Develop
Nodes vs APIs
Functional Categories
Introduction & Primer
Getting blockchain data:
βž” Blocks
βž” Transactions
βž” Sending Transactions (known as relaying)
Cryptocurrency functions:
βž” Generating Private/Public keys, Hashing, Address Encoding etc
βž” Creating transactions
βž” Signing transactions
βž” Support functions
Options
Introduction & Primer
Run your own node:
βž” No dependencies on external service
βž” Lots of RPC functions you can use to
βž” No data on addresses you don’t control (apart from BTC)
βž” No metadata
βž” Uptime challenge – more chains = more nodes
API:
βž” Several available
βž” Address tracking & metadata available
βž” Advanced functions like multi-sig/exchange functions
βž” External dependency
Hybrid Approach
Introduction & Primer
Run your own node for experimentation
βž” Start on the testnet
βž” Send initial transactions to seed your application
βž” Watch how the transaction/data is represented through the API of your
choice
βž” Simulate external users
API
βž” Used by your main application/server/scripts
Framework used for cryptocurrency functions
βž” This stuff is hard, no need to reinvent the wheel
Any Questions?

More Related Content

PDF
Bitcoin, Banking and the Blockchain
PDF
Blockchain powering the internet of value
PPSX
Toward Money-over-IP? From Bitcoin to M2M Money
PDF
Blockchain As An Enabler_16 July 2016_David Lee_Final
PDF
Blockchain Introduction
PDF
Blockchain rewires financial markets / IBM
PPTX
Introduction to blockchain and smart contracts
PPTX
The Blockchain - The Technology behind Bitcoin
Bitcoin, Banking and the Blockchain
Blockchain powering the internet of value
Toward Money-over-IP? From Bitcoin to M2M Money
Blockchain As An Enabler_16 July 2016_David Lee_Final
Blockchain Introduction
Blockchain rewires financial markets / IBM
Introduction to blockchain and smart contracts
The Blockchain - The Technology behind Bitcoin

What's hot (20)

PDF
Bitcoin presentation
PDF
Blockchain bootcamp for boards
PDF
Distributed ledger technology: beyond block chain
PDF
Blockchain overview, use cases, implementations and challenges
PDF
Understanding private blockchains
PPTX
Blockchain 101 - public, tokenized blockchains
PPTX
CST 20363 Session 7 - Blockchain
PDF
PDF
Blockchain technology and applications from a financial perspective
PDF
Blockchain demystification
PPT
Cryptocurrencies: The Mechanics Economic and Finance
PPTX
BlockChain for the Banker
PDF
Basic blockchain
PPTX
Intro into blockchain
PDF
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
PPTX
Blockchain- how it could transform business
PDF
Bitcoin and Blockchain Technology: An Introduction
PDF
Understand Bitcoin in 5 minutes
PPTX
Structured approach to blockchain and consensus techniques
PDF
Block chain 101 what it is, why it matters
Bitcoin presentation
Blockchain bootcamp for boards
Distributed ledger technology: beyond block chain
Blockchain overview, use cases, implementations and challenges
Understanding private blockchains
Blockchain 101 - public, tokenized blockchains
CST 20363 Session 7 - Blockchain
Blockchain technology and applications from a financial perspective
Blockchain demystification
Cryptocurrencies: The Mechanics Economic and Finance
BlockChain for the Banker
Basic blockchain
Intro into blockchain
14 Jan17- Nullmeets -Blockchain concept decoded by Ninad Sarang
Blockchain- how it could transform business
Bitcoin and Blockchain Technology: An Introduction
Understand Bitcoin in 5 minutes
Structured approach to blockchain and consensus techniques
Block chain 101 what it is, why it matters
Ad

Viewers also liked (20)

ODP
CBGTBT - Part 5 - Blockchains 102
ODP
CBGTBT - Part 3 - Transactions 101
ODP
CBGTBT - Part 2 - Blockchains 101
ODP
CBGTBT - Part 6 - Transactions 102
ODP
CBGTBT - Part 4 - Mining
PPTX
Blockchain: The Information Technology of the Future
PPTX
Block Chain- The future of businesses?
PPTX
Practical Applications of Block Chain Technologies
PPTX
Build your own block chain
PDF
Sap sap so h 2013
PDF
Blockchain: Developer Perspective
PDF
Internet of Things (IoT) protocols COAP MQTT OSCON2014
PPTX
CoAP Course for m2m and Internet of Things scenarios
PPTX
Predictive Analytics: Context and Use Cases
PDF
Stem Cell Case Study By Dr. Bennett
PPTX
HATech DevOps Services general introduction
PDF
Blockchain + Streaming Analytics with Ethereum and TIBCO StreamBase
PPTX
Technical Introduction to IBM's Open Blockchain (OBC)
CBGTBT - Part 5 - Blockchains 102
CBGTBT - Part 3 - Transactions 101
CBGTBT - Part 2 - Blockchains 101
CBGTBT - Part 6 - Transactions 102
CBGTBT - Part 4 - Mining
Blockchain: The Information Technology of the Future
Block Chain- The future of businesses?
Practical Applications of Block Chain Technologies
Build your own block chain
Sap sap so h 2013
Blockchain: Developer Perspective
Internet of Things (IoT) protocols COAP MQTT OSCON2014
CoAP Course for m2m and Internet of Things scenarios
Predictive Analytics: Context and Use Cases
Stem Cell Case Study By Dr. Bennett
HATech DevOps Services general introduction
Blockchain + Streaming Analytics with Ethereum and TIBCO StreamBase
Technical Introduction to IBM's Open Blockchain (OBC)
Ad

Similar to CBGTBT - Part 1 - Workshop introduction & primer (20)

PPT
Blockchain
PDF
blockchain technology
PDF
Banking on The Future of Blockchains
PDF
001 What is Blockchain.pdf
PDF
Blockchain Landscape Report 2019
PDF
A beginners Guide to NFTs.pdf
PPTX
Blockchain basics
PPTX
Blockchain technology & it's application
PDF
Banking on blockchains
PPTX
Blockchain: a Game-Changing Technology
PPTX
Blockchain
PPTX
dfgsdjghkjsdhfg.pptx
PPTX
Yes, We're Talking About Process: Blockchains and How Lawyers Might Use Them
PDF
Blockchain intro at framework
PDF
Paybis.com - high level intro to blockchain for Devclub.lv
PPTX
Blockchain and digital assets for insolvency practitioners
PDF
Blockchains in agriculture
PDF
solulab.com-What is Blockchain Technology.pdf
PPT
BlockChain_and _cryptocurrency_technology (1).ppt
PPTX
BLOCKCHAIN
Blockchain
blockchain technology
Banking on The Future of Blockchains
001 What is Blockchain.pdf
Blockchain Landscape Report 2019
A beginners Guide to NFTs.pdf
Blockchain basics
Blockchain technology & it's application
Banking on blockchains
Blockchain: a Game-Changing Technology
Blockchain
dfgsdjghkjsdhfg.pptx
Yes, We're Talking About Process: Blockchains and How Lawyers Might Use Them
Blockchain intro at framework
Paybis.com - high level intro to blockchain for Devclub.lv
Blockchain and digital assets for insolvency practitioners
Blockchains in agriculture
solulab.com-What is Blockchain Technology.pdf
BlockChain_and _cryptocurrency_technology (1).ppt
BLOCKCHAIN

Recently uploaded (20)

PPTX
presentation_pfe-universite-molay-seltan.pptx
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
DOCX
Unit-3 cyber security network security of internet system
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
Β 
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPTX
artificial intelligence overview of it and more
PDF
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
PDF
Sims 4 Historia para lo sims 4 para jugar
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PDF
Introduction to the IoT system, how the IoT system works
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
presentation_pfe-universite-molay-seltan.pptx
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
INTERNET------BASICS-------UPDATED PPT PRESENTATION
Unit-3 cyber security network security of internet system
Slides PPTX World Game (s) Eco Economic Epochs.pptx
RPKI Status Update, presented by Makito Lay at IDNOG 10
Β 
522797556-Unit-2-Temperature-measurement-1-1.pptx
artificial intelligence overview of it and more
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
Introuction about WHO-FIC in ICD-10.pptx
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Module 1 - Cyber Law and Ethics 101.pptx
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
Sims 4 Historia para lo sims 4 para jugar
Job_Card_System_Styled_lorem_ipsum_.pptx
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
SASE Traffic Flow - ZTNA Connector-1.pdf
Introduction to the IoT system, how the IoT system works
Cloud-Scale Log Monitoring _ Datadog.pdf

CBGTBT - Part 1 - Workshop introduction & primer

  • 1. A Complete Beginners Guide to Blockchain Technology @blockstrap #StartingBlock2015
  • 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 1st of 6. Questions? Comments? @MrAdamGiles adam@neuroware.io
  • 3. Introduction & Primer Hello Adam Giles Cofounder & CEO of Neuroware.io Tools, software & Infrastructure for developers building blockchain applications Coding since late 80's Working with Bitcoin 2010 @MrAdamGiles adam@neuroware.io
  • 4. Introduction & Primer Lets start at the beginning No prior knowledge of blockchains required. We’ll be looking at Bitcoin, but mostly talking software. Start with a simplified overview of how it all works, then dive deeper into each section. Heads up! Some of the simplifications are so simple, that Bitcoin experts will be yelling that they’re wrong. (They’re right!)
  • 5. Introduction & Primer Who’s in the room? What’s your language of choice? βž” NodeJS βž” Python βž” Java βž” PHP βž” Ruby βž” HTML5 βž” C/C++/C# βž” Anything else? How long have you been coding? βž” Not a dev ( 0yrs ) βž” Total newbie ( <1 yr ) βž” Mid-level ( 1<5 yrs ) βž” Old timer ( +5 yrs )
  • 6. Schedule Introduction & Primer - What you need to know Blockchains 101 - Complete beginners guide to a blockchain Transactions 101 - All about what goes into the blocks Mining & Blocks - How blocks get made Blockchains 102 - Implications of mining Transactions 102 - Nitty gritty details Each module is approx 40 mins with 15 min Q & A afterwards
  • 7. Introduction & Primer What you need to know
  • 8. No new technology in blockchains Introduction & Primer Just lots of it combined in a new way βž” Distributed Systems βž” Peer-to-peer networks βž” Hashing functions βž” Public - Private key cryptography βž” Cryptographic signatures βž” Elliptic curve cryptography
  • 9. Code comes last Introduction & Primer There’s lots of me talking and pointing to the screen in this presentation. Blockchain technology is both technical and intricate, if we jumped straight into code, you might now know what you were looking at. I aim to give you the base understanding needed to pick up a library for your chosen language and know what it’s talking about.
  • 10. It’s all about Transactions
  • 11. Cash is peer to peer Introduction & Primer Observations: βž” No middleman required. βž” DIY Fraud detection βž” Sufficient trust for the value of the transaction βž” Anonymous/Private βž” Distributed
  • 12. Electronic Middlemen Introduction & Primer Observations: βž” Requires 3rd party trust βž” The more complex the flow, the more middlemen required βž” Specialised equipment needed (e.g. POS terminal, connection to Txn networks βž” Fraud detection by 3rd parties βž” Every step adds cost Electronic Middlemen
  • 13. Middlemen adding value Introduction & Primer βž” Provision of infrastructure (Terminals, network connections etc) βž” Management of commercial relationships between parties (Lots of lawyers) βž” Abstraction of complexity βž” Fraud detection βž” Customer service βž” Regulatory compliance KYC, AML, Risk reporting βž” Removal of bad-actors from the ecosystem Until now, this is the best way we’ve been able to achieve the goal of person-to-person transactions at a distance.
  • 14. Transaction volumes are growing Introduction & Primer Now: βž” Online banking transaction growth βž” SME’s/Retail acceptance of electronic transactions βž” Online purchases/Commerce βž” In-App purchases βž” Virtual currencies in games βž” International Transaction growth (Commerce and Remittance) βž” Value storage cards (loyalty cards, ERP, gift cards etc etc) Future: βž” Internet of Things βž” Autonomous Objects βž” Programmable money/Finance automation
  • 15. In general... Introduction & Primer The easier it is to conduct transactions the more people transact.
  • 16. Introduction & Primer βž” Cash is king….but only useful locally and small amounts βž” Electronic transactions require Credit/Debit card β—† Fees are high for merchants (Fixed Fee + 1-3%) β—† Settlement is slow (multiple days) β—† Chargebacks shift risk to merchant β—† Microtransactions are cost prohibitive βž” Walled garden/In-country solutions are piecemeal βž” International Transfers ITT/Swift β—† Slow, costly, mistake prone βž” High onboarding costs/bureaucracy LimitationsLimitations
  • 17. 50% of the world doesn’t have a bank account Introduction & Primer
  • 18. Blockchain powered payment networks Introduction & Primer Solved: βž” Return to Peer-to-Peer βž” Speed βž” Trustless trust βž” No special equipment needed βž” Fraud βž” Minimal Cost βž” No chargebacks βž” No monthly fees βž” Transparency Ignored: βž” Policing bad-actors βž” KYC/AML βž” Insurance βž” Onboarding process βž” Customer service βž” Commercial Relationships Challenges: βž” Technical Complexity βž” Regulatory Uncertainty βž” Getting the currency in the first place
  • 19. Introduction & Primer It's easy to create your own, and there are many. Each is separate and runs its own blockchain. The value transferred in each blockchain is primarily its own currency Many blockchains
  • 20. What is a Blockchain? What you need to know
  • 21. It all starts here Introduction & Primer
  • 25. Some interesting observations Introduction & Primer βž” The stones themselves had no non-monetary value βž” Eventually, spending your stones didn't require physically moving the stone – just acknowledgement of a change of ownership βž” Impossible to do a trade in secret βž” They developed a form of distributed ledger, but... βž” It couldn't scale!
  • 26. A blockchain is an implementation of a ledger Introduction & Primer βž” Ledgers record transactions - the passing of value from owner to owner βž” Transactions are time based βž” Once a Txn is recorded you can’t alter them βž” You need to be able to detect if your ledger has been altered A blockchain is a protocol for building an immutable historical record of transactions
  • 28. Network Evolution i) centralized iii) distributed ii) decentralized
  • 29. Network Evolution i) centralized iii) distributed ii) decentralized
  • 30. Network Evolution i) centralized iii) distributed ii) decentralized
  • 31. Network Evolution i) centralized iii) distributed ii) decentralized
  • 32. Network Evolution i) centralized iii) distributed ii) decentralized
  • 33. Network Evolution i) centralized iii) distributed ii) decentralized
  • 34. Network Evolution i) centralized iii) distributed ii) decentralized
  • 35. Network Evolution i) centralized iii) distributed ii) decentralized
  • 36. Network Evolution i) centralized iii) distributed ii) decentralized
  • 37. Network Evolution i) centralized iii) distributed ii) decentralized
  • 38. Distributed Networks Introduction & Primer βž” Many, equal nodes βž” Each node has multiple connections to other nodes βž” Very resilient to failures, attacks βž” As long as 2 nodes are up, the network is still running
  • 40. Key historical dates Introduction & Primer βž” 2009 first block created βž” Satoshi Nakamoto was the pseudonym used βž” Early days, it was just him/her/them/it βž” Then crypto-geeks, then early technology adopters βž” Satoshi disappears December 2010 - date of last post βž” Recent years have seen 'professionalism' of the ecosystem
  • 41. Seeking Satoshi Introduction & Primer βž” Not this guy! (probably) βž” Not a great coder βž” Not a great cryptographer βž” Aware of the controversy blockchains create
  • 42. Seeking Satoshi Introduction & Primer While conspiracy theories are fun, it's mostly irrelevant βž” Operational design published openly βž” Protocol is opensource βž” Code is opensource and has mostly been re-written
  • 43. Is It Money? Digital cash? Digital gold?
  • 44. Has all the same characteristics Introduction & Primer Durability - Safe for long term storage Portability - Easy to move around and spend Divisibility - So you can spend small amounts Uniformity - Each unit of value is equal Limited supply - To preserve value Acceptability - So you can actually spend it
  • 45. Is it legal tender? Introduction & Primer NO! Legal tender is defined as β€œcoins or banknotes that must be accepted if offered in payment of a debt.” Cryptocurrencies aren’t regulated by any central bank.
  • 46. So what? Introduction & Primer Lots of things aren’t legal tender but still have value: βž” Gold βž” Diamonds βž” Rolex watch βž” US$ (outside the US)
  • 47. Worlds most expensive pizza? Introduction & Primer 22nd May 2010 is Bitcoin Pizza day – bitcoins first real world transaction βž” Laszlo Hanyecz offered 10,000 BTC for 2 pizzas βž” Someone in the UK phoned through the order using their credit card βž” Then worth US ~$24 βž” Currently worth US ~$2.4m
  • 48. Ecosystem Developments One of the fasting moving in tech
  • 49. Introduction & Primer Parallels to the internet Blockchains today have been likened to the Internet in 90s. βž” Similar investment levels βž” Similar excitement levels βž” Similar visions of potential uses History doesn’t repeat, but it rhymes: We expect similar... βž” Similar path to maturity – people, tools, process βž” Similar adoption curve (perhaps faster) βž” Evolution of protocol/services built on blockchains (perhaps faster)
  • 50. Introduction & Primer Parallels to the internet Just as the internet revolutionised access to information, blockchains will do the same to multiple industrial verticals: βž” Finance first ● It's what blockchains were built to do ● It's where the money is Non finance uses βž” Specialist blockchains dedicated to one task βž” Generalist blockchains to be used as a 'platform' Brave new world/wild west – still lots of learn and build
  • 51. Introduction & Primer Where are we now? General Public Developers
  • 52. Introduction & Primer Investment into the sector βž” Reid Hoffman (LinkedIn) Invested US$20M in Blockstream Personally βž” Sir Richard Branson backed BitPay (Exchange) in a US$30 Million Round βž” Circle (Exchange) raised US$50 Million - led by Goldman Sachs βž” NYSE led a US$75 Million Investment in Coinbase (Exchange) US$1 Billion from VC funding is expected in 2015 Although this is a small cross section, the importance is the names, not the numbers!
  • 53. Introduction & Primer Evolution of the networks 1st generation networks just transfer value - bitcoin, litecoin, dogecoin Blockchain 1.5 technologies build upon existing blockchains by offering additional dependent layers and protocols allowing for unique offerings: - NameCoin provides distributed DNS - ColoredCoin, Counterparty and Omni can tag and track digital assets - FileCoin and StorJ provides distributed CDN (proof of bandwidth)
  • 54. Introduction & Primer Evolution of the networks Blockchain 2.0 is currently in a mostly theoretical or pre-alpha state but involves starting from scratch and introducing turing-complete functionality βž” Ethetherum and Codius introduce autonomous applications (recently used by IBM at the core of their new IoT platform - ADEPT) Curated blockchains, Private access/Hybrid blockchains, entry/exit points are known & regulated βž” Ripple βž” Tembusu
  • 59. Some building blocks Introduction & Primer βž” Blockchain terminology βž” Hash functions βž” Merkle trees βž” Encoding schemes βž” Public/Private key crypto βž” Digital Signatures
  • 60. Terminology Introduction & Primer βž” Address: The β€˜account number’ of the person you are sending coins to. Can be used just once or multiple times. You can have many addresses βž” Transaction: The transfer of value/coins from one address to another address βž” Block/Blockchain: The record of transactions βž” Wallet: Software that manages your addresses and keeps track of transactions and balances
  • 61. Hashing functions Introduction & Primer β€˜A hash function is any function that can be used to map digital data of arbitrary size to digital data of fixed size. The values returned by a hash function are called hash values, hash codes, hash sums, or hashes.’ There are many types, but Bitcoin uses SHA256; output is 256bits of data, or 64 hexadecimal characters
  • 62. Hashing properties Introduction & Primer βž” Any size of data always results in the same length hash βž” Slight changes of input data gives totally different hashes β—† β€˜Hello World’ = a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e β—† β€˜Hello World!’ = 7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069 βž” The same input always produces the same output βž” Hashes are β€˜one way’
  • 63. Hashing usages Introduction & Primer βž” To record a value while hiding the original value (e.g. a password) βž” To verify the integrity of some data (store the hash, to check the data, hash it again and compare the values; should be the same hash value) βž” To prove you’ve done calculations (generating hashes takes computing power)
  • 64. Merkle Tree - Hash of hashes Introduction & Primer βž” Multiple blocks of data, in a certain order, into a single hash βž” Allows you to work out which block has changed
  • 65. Encoding Schemes Introduction & Primer βž” Take some data, encode it for a specific purpose (e.g. easier to transmit, easier to read, easier to convert between formats) βž” Two way, you can encode and decode and end up with the same data βž” Bitcoin uses base 58 - easier to read (misses out 0 I O l as they all look like zeros and ones) β€˜1234567890’ = 2t6V2H
  • 66. Public/Private key crypto Introduction & Primer βž” 2 uniquely related cryptographic keys βž” Data encrypted with the public key can only decrypted with the private one (and vice versa) βž” The maths behind it is very complex βž” Main aim is confidentiality (in messaging) βž” Also used for digital signatures (the bit we’re interested in)
  • 67. Digital Signatures Introduction & Primer βž” Verify the messages came from the correct person βž” Verify the messages hasn’t been changed or tampered with βž” Can be used to prove that you have the private key βž” Main aim is confidence in identity (in messaging)
  • 69. Functional Categories Introduction & Primer Getting blockchain data: βž” Blocks βž” Transactions βž” Sending Transactions (known as relaying) Cryptocurrency functions: βž” Generating Private/Public keys, Hashing, Address Encoding etc βž” Creating transactions βž” Signing transactions βž” Support functions
  • 70. Options Introduction & Primer Run your own node: βž” No dependencies on external service βž” Lots of RPC functions you can use to βž” No data on addresses you don’t control (apart from BTC) βž” No metadata βž” Uptime challenge – more chains = more nodes API: βž” Several available βž” Address tracking & metadata available βž” Advanced functions like multi-sig/exchange functions βž” External dependency
  • 71. Hybrid Approach Introduction & Primer Run your own node for experimentation βž” Start on the testnet βž” Send initial transactions to seed your application βž” Watch how the transaction/data is represented through the API of your choice βž” Simulate external users API βž” Used by your main application/server/scripts Framework used for cryptocurrency functions βž” This stuff is hard, no need to reinvent the wheel

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&amp;apos;s what we&amp;apos;ll be focusing on Simplified first , then circle back round and dive deeper Simplifications can be missleading Tell meif too fast/slow
  • #4: 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&amp;apos;s what we&amp;apos;ll be focusing on Simplified first , then circle back round and dive deeper Simplifications can be missleading Tell meif too fast/slow
  • #5: 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&amp;apos;s what we&amp;apos;ll be focusing on Simplified first , then circle back round and dive deeper Simplifications can be missleading Tell meif too fast/slow
  • #18: 67% of adults use it Same money flow as oe of the large commercial banks
  • #65: Doesn&amp;apos;t matter how many blocks, sstill same length hash Blocks must be in the same order Used to check integrety of diiferent scrions fof theblocks